vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/SuluDocumentManagerBundle.php line 23

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\DocumentManagerBundle;
  11. use Sulu\Bundle\DocumentManagerBundle\DependencyInjection\Compiler\DocumentFixturePass;
  12. use Sulu\Bundle\DocumentManagerBundle\DependencyInjection\Compiler\InitializerPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17.  * @final
  18.  */
  19. class SuluDocumentManagerBundle extends Bundle
  20. {
  21.     /**
  22.      * @internal
  23.      */
  24.     public function build(ContainerBuilder $container): void
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new InitializerPass());
  28.         $container->addCompilerPass(new RegisterListenersPass(
  29.             'sulu_document_manager.event_dispatcher',
  30.             'sulu_document_manager.event_listener',
  31.             'sulu_document_manager.event_subscriber'
  32.         ));
  33.         $container->addCompilerPass(new DocumentFixturePass());
  34.     }
  35. }