From 41fcc98da778210b88b2dcb56866a07f2dfd14b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Sat, 28 May 2022 09:05:53 +0200 Subject: [PATCH] chore: Minor code tweaks. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- lib/SP/Core/Bootstrap/BootstrapWeb.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/SP/Core/Bootstrap/BootstrapWeb.php b/lib/SP/Core/Bootstrap/BootstrapWeb.php index 746b8c4c..fd1bc11c 100644 --- a/lib/SP/Core/Bootstrap/BootstrapWeb.php +++ b/lib/SP/Core/Bootstrap/BootstrapWeb.php @@ -26,6 +26,7 @@ namespace SP\Core\Bootstrap; use Closure; +use Exception; use Klein\Response; use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; @@ -153,7 +154,7 @@ final class BootstrapWeb extends BootstrapBase return call_user_func_array([$controller, $methodName], $methodParams); } catch (SessionTimeout $sessionTimeout) { logger('Session timeout'); - } catch (\Exception $e) { + } catch (Exception $e) { processException($e); /** @var Response $response */