diff --git a/Bootstraps/Symfony.php b/Bootstraps/Symfony.php index 2196a4e..5d9583a 100644 --- a/Bootstraps/Symfony.php +++ b/Bootstraps/Symfony.php @@ -170,7 +170,7 @@ public function postHandle($app) if ($container->has('logger')) { $logger = $container->get('logger'); Utils::bindAndCall(function () { - if ($debugLogger = $this->getDebugLogger()) { + if (\method_exists($this, 'getDebugLogger') && $debugLogger = $this->getDebugLogger()) { //DebugLogger Utils::hijackProperty($debugLogger, 'records', []); }