vendor/sulu/article-bundle/SuluArticleBundle.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\ArticleBundle;
  11. use Sulu\Bundle\ArticleBundle\DependencyInjection\ConverterCompilerPass;
  12. use Sulu\Bundle\ArticleBundle\DependencyInjection\RouteEnhancerCompilerPass;
  13. use Sulu\Bundle\ArticleBundle\DependencyInjection\StructureValidatorCompilerPass;
  14. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. /**
  18.  * Entry-point for article-bundle.
  19.  */
  20. class SuluArticleBundle extends Bundle
  21. {
  22.     public function build(ContainerBuilder $container)
  23.     {
  24.         $container->addCompilerPass(new ConverterCompilerPass());
  25.         $container->addCompilerPass(new StructureValidatorCompilerPass(), PassConfig::TYPE_AFTER_REMOVING);
  26.         $container->addCompilerPass(new RouteEnhancerCompilerPass());
  27.     }
  28. }