20 lines
529 B
PHP
20 lines
529 B
PHP
<?php
|
|
|
|
namespace Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler;
|
|
|
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
/** @internal */
|
|
final class RemoveLoggingMiddlewarePass implements CompilerPassInterface
|
|
{
|
|
public function process(ContainerBuilder $container): void
|
|
{
|
|
if ($container->has('logger')) {
|
|
return;
|
|
}
|
|
|
|
$container->removeDefinition('doctrine.dbal.logging_middleware');
|
|
}
|
|
}
|