vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/SuluWebsiteBundle.php line 20

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\WebsiteBundle;
  11. use Sulu\Bundle\WebsiteBundle\DependencyInjection\Compiler\DeregisterDefaultRouteListenerCompilerPass;
  12. use Sulu\Component\Symfony\CompilerPass\TaggedServiceCollectorCompilerPass;
  13. use Sulu\Component\Util\SuluVersionPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. class SuluWebsiteBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new SuluVersionPass());
  22.         $container->addCompilerPass(new DeregisterDefaultRouteListenerCompilerPass());
  23.         $container->addCompilerPass(
  24.             new TaggedServiceCollectorCompilerPass(
  25.                 'sulu_website.reference_store_pool',
  26.                 'sulu_website.reference_store',
  27.                 0,
  28.                 'alias'
  29.             )
  30.         );
  31.     }
  32. }