[DebugBundle] Drop RemoveWebServerBundleLoggerPass

This commit is contained in:
Robin Chalas 2019-12-28 20:01:11 +01:00
parent 291d1f3a84
commit 167411c194
2 changed files with 0 additions and 33 deletions

View File

@ -12,7 +12,6 @@
namespace Symfony\Bundle\DebugBundle;
use Symfony\Bundle\DebugBundle\DependencyInjection\Compiler\DumpDataCollectorPass;
use Symfony\Bundle\DebugBundle\DependencyInjection\Compiler\RemoveWebServerBundleLoggerPass;
use Symfony\Component\Console\Application;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
@ -53,7 +52,6 @@ class DebugBundle extends Bundle
parent::build($container);
$container->addCompilerPass(new DumpDataCollectorPass());
$container->addCompilerPass(new RemoveWebServerBundleLoggerPass());
}
public function registerCommands(Application $application)

View File

@ -1,31 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\DebugBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @author Jérémy Derussé <jeremy@derusse.com>
*/
class RemoveWebServerBundleLoggerPass implements CompilerPassInterface
{
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
{
if ($container->hasDefinition('web_server.command.server_log') && $container->hasDefinition('monolog.command.server_log')) {
$container->removeDefinition('web_server.command.server_log');
}
}
}