vendor/kunstmaan/node-bundle/KunstmaanNodeBundle.php line 14

Open in your IDE?
  1. <?php
  2. namespace Kunstmaan\NodeBundle;
  3. use Kunstmaan\NodeBundle\DependencyInjection\Compiler\DeprecateClassParametersPass;
  4. use Kunstmaan\NodeBundle\DependencyInjection\Compiler\FixRouterPass;
  5. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\HttpKernel\Bundle\Bundle;
  8. /**
  9.  * KunstmaanNodeBundle
  10.  */
  11. class KunstmaanNodeBundle extends Bundle
  12. {
  13.     public function build(ContainerBuilder $container)
  14.     {
  15.         parent::build($container);
  16.         // Use -1 priority to run this compiler pass after the symfony-cmf/router compiler pass
  17.         $container->addCompilerPass(new FixRouterPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -1);
  18.         $container->addCompilerPass(new DeprecateClassParametersPass());
  19.     }
  20. }