package and depencies
This commit is contained in:
@@ -14,6 +14,8 @@ namespace Symfony\Component\HttpKernel\DependencyInjection;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Component\HttpKernel\Log\Logger;
|
||||
|
||||
/**
|
||||
@@ -23,9 +25,6 @@ use Symfony\Component\HttpKernel\Log\Logger;
|
||||
*/
|
||||
class LoggerPass implements CompilerPassInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
$container->setAlias(LoggerInterface::class, 'logger')
|
||||
@@ -36,6 +35,7 @@ class LoggerPass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
$container->register('logger', Logger::class)
|
||||
->setArguments([null, null, null, new Reference(RequestStack::class)])
|
||||
->setPublic(false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user