Skip to content

Commit 2c147b8

Browse files
committed
bug #30090 [FrameworkBundle] add constraint validators before optimizations (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] add constraint validators before optimizations | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24222 | License | MIT | Doc PR | Commits ------- 05e0e162d3 add constraint validators before optimizations
2 parents 2b7214f + 4eef4de commit 2c147b8

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
@@ -101,7 +101,7 @@ public function build(ContainerBuilder $container)
101101
// but as late as possible to get resolved parameters
102102
$container->addCompilerPass((new RegisterListenersPass())->setHotPathEvents($hotPathEvents), PassConfig::TYPE_BEFORE_REMOVING);
103103
$container->addCompilerPass(new TemplatingPass());
104-
$this->addCompilerPassIfExists($container, AddConstraintValidatorsPass::class, PassConfig::TYPE_BEFORE_REMOVING);
104+
$this->addCompilerPassIfExists($container, AddConstraintValidatorsPass::class);
105105
$container->addCompilerPass(new AddAnnotationsCachedReaderPass(), PassConfig::TYPE_AFTER_REMOVING, -255);
106106
$this->addCompilerPassIfExists($container, AddValidatorInitializersPass::class);
107107
$this->addCompilerPassIfExists($container, AddConsoleCommandPass::class, PassConfig::TYPE_BEFORE_REMOVING);

0 commit comments

Comments
 (0)