Skip to content

Commit 1d773c1

Browse files
committed
[FrameworkBundle] Change priority of AddConsoleCommandPass to TYPE_BEFORE_REMOVING
1 parent 5e28927 commit 1d773c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function build(ContainerBuilder $container)
107107
$this->addCompilerPassIfExists($container, AddConstraintValidatorsPass::class, PassConfig::TYPE_BEFORE_REMOVING);
108108
$container->addCompilerPass(new AddAnnotationsCachedReaderPass(), PassConfig::TYPE_AFTER_REMOVING, -255);
109109
$this->addCompilerPassIfExists($container, AddValidatorInitializersPass::class);
110-
$this->addCompilerPassIfExists($container, AddConsoleCommandPass::class);
110+
$this->addCompilerPassIfExists($container, AddConsoleCommandPass::class, PassConfig::TYPE_BEFORE_REMOVING);
111111
if (class_exists(TranslatorPass::class)) {
112112
// Arguments to be removed in 4.0, relying on the default values
113113
$container->addCompilerPass(new TranslatorPass('translator.default', 'translation.loader'));

0 commit comments

Comments
 (0)