Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05e0e16

Browse files
committed
add constraint validators before optimizations
1 parent 205b0ba commit 05e0e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/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)