From 1bcf8c772b1b620dc68407d7ca90ad11ff993be0 Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Tue, 29 Oct 2024 18:32:55 -0300 Subject: [PATCH 1/2] Remove copy and paste snippet --- guide/index.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/guide/index.rst b/guide/index.rst index d16606c..12fb7e2 100644 --- a/guide/index.rst +++ b/guide/index.rst @@ -691,10 +691,6 @@ Set the search engine used to create search links on exception error messages. Valid values are: ``ask``, ``baidu``, ``bing``, ``duckduckgo``, ``google``, ``yahoo`` and ``yandex``. The default is ``google``. - -Set if it is to initialize by setting the class as exception handler. The -default value is ``true``. - handle_errors """"""""""""" From d1dc8d0a335dfb5fffba3091aa317e069d0bca5b Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Fri, 1 Nov 2024 19:27:02 -0300 Subject: [PATCH 2/2] Pass argument to get config instance --- src/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 5c6b09f..010480c 100644 --- a/src/App.php +++ b/src/App.php @@ -562,7 +562,7 @@ public static function debugger(string $instance = 'default') : Debugger */ protected static function setDebugger(string $instance) : Debugger { - $config = static::config()->get('debugger'); + $config = static::config()->get('debugger', $instance); $service = new Debugger(); if (isset($config['debugbar_view'])) { $service->setDebugbarView($config['debugbar_view']); @@ -605,7 +605,7 @@ public static function exceptionHandler(string $instance = 'default') : Exceptio */ protected static function setExceptionHandler(string $instance) : ExceptionHandler { - $config = static::config()->get('exceptionHandler'); + $config = static::config()->get('exceptionHandler', $instance); $environment = $config['environment'] ?? ExceptionHandler::PRODUCTION; $logger = null; if (isset($config['logger_instance'])) {