We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993332e commit e5274f5Copy full SHA for e5274f5
FrameworkBundle.php
@@ -80,7 +80,9 @@ public function build(ContainerBuilder $container)
80
$container->addCompilerPass(new TemplatingPass());
81
$container->addCompilerPass(new AddConstraintValidatorsPass(), PassConfig::TYPE_BEFORE_REMOVING);
82
$container->addCompilerPass(new AddValidatorInitializersPass());
83
- $container->addCompilerPass(new AddConsoleCommandPass());
+ if (class_exists(AddConsoleCommandPass::class)) {
84
+ $container->addCompilerPass(new AddConsoleCommandPass());
85
+ }
86
$container->addCompilerPass(new FormPass());
87
$container->addCompilerPass(new TranslatorPass());
88
$container->addCompilerPass(new LoggingTranslatorPass());
0 commit comments