Skip to content

Commit ea24428

Browse files
mleczakmandig
authored andcommitted
Support symfony minimalist logger (#88)
1 parent 0a3801d commit ea24428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Bootstraps/Symfony.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function postHandle($app)
170170
if ($container->has('logger')) {
171171
$logger = $container->get('logger');
172172
Utils::bindAndCall(function () {
173-
if ($debugLogger = $this->getDebugLogger()) {
173+
if (\method_exists($this, 'getDebugLogger') && $debugLogger = $this->getDebugLogger()) {
174174
//DebugLogger
175175
Utils::hijackProperty($debugLogger, 'records', []);
176176
}

0 commit comments

Comments
 (0)