vendor/sulu/sulu/src/Sulu/Bundle/PageBundle/SuluPageBundle.php line 26

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\PageBundle;
  11. use Sulu\Bundle\PageBundle\DependencyInjection\Compiler\ContentExportCompilerPass;
  12. use Sulu\Bundle\PageBundle\DependencyInjection\Compiler\SmartContentDataProviderCompilerPass;
  13. use Sulu\Bundle\PageBundle\DependencyInjection\Compiler\StructureExtensionCompilerPass;
  14. use Sulu\Bundle\PageBundle\DependencyInjection\Compiler\VersioningCompilerPass;
  15. use Sulu\Bundle\PageBundle\DependencyInjection\Compiler\WebspacesPass;
  16. use Sulu\Component\Symfony\CompilerPass\TaggedServiceCollectorCompilerPass;
  17. use Symfony\Component\DependencyInjection\ContainerBuilder;
  18. use Symfony\Component\HttpKernel\Bundle\Bundle;
  19. /**
  20.  * @final
  21.  */
  22. class SuluPageBundle extends Bundle
  23. {
  24.     /**
  25.      * @internal
  26.      */
  27.     public function build(ContainerBuilder $container): void
  28.     {
  29.         parent::build($container);
  30.         $container->addCompilerPass(new ContentExportCompilerPass());
  31.         $container->addCompilerPass(new SmartContentDataProviderCompilerPass());
  32.         $container->addCompilerPass(new WebspacesPass());
  33.         $container->addCompilerPass(new StructureExtensionCompilerPass());
  34.         $container->addCompilerPass(new VersioningCompilerPass());
  35.         $container->addCompilerPass(
  36.             new TaggedServiceCollectorCompilerPass(
  37.                 'sulu_page.teaser.provider_pool',
  38.                 'sulu.teaser.provider',
  39.                 0,
  40.                 'alias'
  41.             )
  42.         );
  43.     }
  44. }