diff --git a/DependencyInjection/DebugExtension.php b/DependencyInjection/DebugExtension.php index eadeafb..726b181 100644 --- a/DependencyInjection/DebugExtension.php +++ b/DependencyInjection/DebugExtension.php @@ -14,6 +14,7 @@ use Symfony\Bridge\Monolog\Command\ServerLogCommand; use Symfony\Bundle\DebugBundle\Command\ServerDumpPlaceholderCommand; use Symfony\Component\Config\FileLocator; +use Symfony\Component\Console\Command\Command; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; @@ -92,7 +93,7 @@ public function load(array $configs, ContainerBuilder $container) ; } - if (!class_exists(ServerLogCommand::class)) { + if (!class_exists(Command::class) || !class_exists(ServerLogCommand::class)) { $container->removeDefinition('monolog.command.server_log'); } }