Skip to content

Commit

Permalink
minor #1834 run checks after SensioFrameworkExtraBundle (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3-dev branch.

Discussion
----------

run checks after SensioFrameworkExtraBundle

This does not solve the root issue of #1812. However, it will throw a meaningful error during container compilation so that users can find out how to work around (by enabling TwigBundle).

Commits
-------

956def5 run checks after SensioFrameworkExtraBundle
  • Loading branch information
xabbuh committed Jan 18, 2018
2 parents c3fd187 + 956def5 commit c7fd5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FOSRestBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FOSRestBundle extends Bundle
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new SerializerConfigurationPass());
$container->addCompilerPass(new ConfigurationCheckPass());
$container->addCompilerPass(new ConfigurationCheckPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -10);
$container->addCompilerPass(new FormatListenerRulesPass());
$container->addCompilerPass(new TwigExceptionPass());
$container->addCompilerPass(new JMSFormErrorHandlerPass());
Expand Down

0 comments on commit c7fd5d6

Please sign in to comment.