Skip to content

Commit 9d86e57

Browse files
committed
Merge branch '3.4'
* 3.4: [HttpKernel][FrameworkBundle] Add a minimalist default PSR-3 logger
2 parents b55e66b + bdc18de commit 9d86e57

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
@@ -26,6 +26,7 @@ CHANGELOG
2626
3.4.0
2727
-----
2828

29+
* Always register a minimalist logger that writes in `stderr`
2930
* Deprecated `profiler.matcher` option
3031
* Added support for `EventSubscriberInterface` on `MicroKernelTrait`
3132
* 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
@@ -28,6 +28,7 @@
2828
use Symfony\Component\Console\Application;
2929
use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
3030
use Symfony\Component\HttpKernel\DependencyInjection\ControllerArgumentValueResolverPass;
31+
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
3132
use Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass;
3233
use Symfony\Component\HttpKernel\DependencyInjection\RemoveEmptyControllerArgumentLocatorsPass;
3334
use Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass;
@@ -74,6 +75,7 @@ public function build(ContainerBuilder $container)
7475
{
7576
parent::build($container);
7677

78+
$container->addCompilerPass(new LoggerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
7779
$container->addCompilerPass(new RegisterControllerArgumentLocatorsPass());
7880
$container->addCompilerPass(new RemoveEmptyControllerArgumentLocatorsPass(), PassConfig::TYPE_BEFORE_REMOVING);
7981
$container->addCompilerPass(new RoutingResolverPass());

0 commit comments

Comments
 (0)