From e2726798b7b41471d02bd9ae373d3e9db21dc073 Mon Sep 17 00:00:00 2001 From: EstelleMyddleware <74190794+EstelleMyddleware@users.noreply.github.com> Date: Mon, 28 Mar 2022 11:54:04 +0200 Subject: [PATCH] Hotfix - Doctrine Exception (#698) * hotfix: prevent redirect to login page when no database (triggered by wrong DoctrineException use * hotfix: update Myddleware Release version --- .env | 2 +- src/Controller/InstallRequirementsController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index e302cba61..661e4377a 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ -MYDDLEWARE_VERSION=3.1.0 +MYDDLEWARE_VERSION=3.1.1 APP_SECRET=Thissecretisnotsosecretchangeit APP_ENV=prod APP_DEBUG=false diff --git a/src/Controller/InstallRequirementsController.php b/src/Controller/InstallRequirementsController.php index 1a18de2ee..2608d0d97 100644 --- a/src/Controller/InstallRequirementsController.php +++ b/src/Controller/InstallRequirementsController.php @@ -4,7 +4,7 @@ use App\Repository\ConfigRepository; use Doctrine\DBAL\ConnectionException as DoctrineConnectionException; -use Doctrine\DBAL\DBALException; +use Doctrine\DBAL\Driver\Exception as DBALException; use Doctrine\DBAL\Driver\PDO\Exception as DoctrinePDOException; use Doctrine\DBAL\Exception\TableNotFoundException; use Exception;