Skip to content

Commit dde60a2

Browse files
dunglasfabpot
authored andcommitted
[HttpKernel][FrameworkBundle] Add a minimalist default PSR-3 logger
1 parent cd6e010 commit dde60a2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
3.4.0
55
-----
66

7+
* Always register a minimalist logger that writes in `stderr`
78
* Deprecated `profiler.matcher` option
89
* Added support for `EventSubscriberInterface` on `MicroKernelTrait`
910
* Removed `doctrine/cache` from the list of required dependencies in `composer.json`

FrameworkBundle.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use Symfony\Component\HttpKernel\DependencyInjection\AddCacheClearerPass;
3232
use Symfony\Component\HttpKernel\DependencyInjection\AddCacheWarmerPass;
3333
use Symfony\Component\HttpKernel\DependencyInjection\ControllerArgumentValueResolverPass;
34+
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
3435
use Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass;
3536
use Symfony\Component\HttpKernel\DependencyInjection\RemoveEmptyControllerArgumentLocatorsPass;
3637
use Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass;
@@ -85,6 +86,7 @@ public function build(ContainerBuilder $container)
8586
{
8687
parent::build($container);
8788

89+
$container->addCompilerPass(new LoggerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
8890
$container->addCompilerPass(new RegisterControllerArgumentLocatorsPass());
8991
$container->addCompilerPass(new RemoveEmptyControllerArgumentLocatorsPass(), PassConfig::TYPE_BEFORE_REMOVING);
9092
$container->addCompilerPass(new RoutingResolverPass());

0 commit comments

Comments
 (0)