Navigation Menu

Skip to content

Commit

Permalink
[FrameworkBundle] fixed registration of the register listener pass
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 12, 2013
1 parent 6ec2cba commit 427ee19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php
Expand Up @@ -60,7 +60,9 @@ public function build(ContainerBuilder $container)

$container->addCompilerPass(new RoutingResolverPass());
$container->addCompilerPass(new ProfilerPass());
$container->addCompilerPass(new RegisterKernelListenersPass(), PassConfig::TYPE_AFTER_REMOVING);
// must be registered before removing private services as some might be listeners/subscribers
// but as late as possible to get resolved parameters
$container->addCompilerPass(new RegisterKernelListenersPass(), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new TemplatingPass());
$container->addCompilerPass(new AddConstraintValidatorsPass());
$container->addCompilerPass(new AddValidatorInitializersPass());
Expand Down

0 comments on commit 427ee19

Please sign in to comment.