From 3ee2b20109ddcfddb5357e481f30765d87b832fd Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Wed, 22 Nov 2023 13:32:44 -0300 Subject: [PATCH] Use `NullLogger:.class` for default. --- bin/definitions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/definitions.php b/bin/definitions.php index ac569fb2..75afebb1 100644 --- a/bin/definitions.php +++ b/bin/definitions.php @@ -3,6 +3,8 @@ declare(strict_types=1); use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; +use Psr\Log\NullLogger; use Symfony\Component\Console\Application; use Yiisoft\Definitions\ReferencesArray; use Yiisoft\Yii\Queue\Cli\LoopInterface; @@ -68,4 +70,5 @@ FailureMiddlewareDispatcher::class => [ '__construct()' => ['middlewareDefinitions' => []], ], + LoggerInterface::class => NullLogger::class, ];