vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/SuluDocumentManagerBundle.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\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. class SuluDocumentManagerBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new InitializerPass());
  22.         $container->addCompilerPass(new RegisterListenersPass(
  23.             'sulu_document_manager.event_dispatcher',
  24.             'sulu_document_manager.event_listener',
  25.             'sulu_document_manager.event_subscriber'
  26.         ));
  27.         $container->addCompilerPass(new DocumentFixturePass());
  28.     }
  29. }