Skip to content

Commit e73ed7b

Browse files
committed
bug #27272 [FrameworkBundle] Change priority of AddConsoleCommandPass to TYPE_BEFORE_REMOVING (upyx)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Change priority of AddConsoleCommandPass to TYPE_BEFORE_REMOVING | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27259 | License | MIT | Doc PR | no Hello! There is fix for #27259 issue. It changes priority of `AddConsoleCommandPass` to `TYPE_BEFORE_REMOVING` as @chalasr advised. I'm not sure about side effects by that. Commits ------- e36099503f [FrameworkBundle] Change priority of AddConsoleCommandPass to TYPE_BEFORE_REMOVING
2 parents f5a6c71 + 1d773c1 commit e73ed7b

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
@@ -104,7 +104,7 @@ public function build(ContainerBuilder $container)
104104
$this->addCompilerPassIfExists($container, AddConstraintValidatorsPass::class, PassConfig::TYPE_BEFORE_REMOVING);
105105
$container->addCompilerPass(new AddAnnotationsCachedReaderPass(), PassConfig::TYPE_AFTER_REMOVING, -255);
106106
$this->addCompilerPassIfExists($container, AddValidatorInitializersPass::class);
107-
$this->addCompilerPassIfExists($container, AddConsoleCommandPass::class);
107+
$this->addCompilerPassIfExists($container, AddConsoleCommandPass::class, PassConfig::TYPE_BEFORE_REMOVING);
108108
if (class_exists(TranslatorPass::class)) {
109109
// Arguments to be removed in 4.0, relying on the default values
110110
$container->addCompilerPass(new TranslatorPass('translator.default', 'translation.loader'));

0 commit comments

Comments
 (0)