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

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\InitializerPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. class SuluDocumentManagerBundle extends Bundle
  16. {
  17.     public function build(ContainerBuilder $container)
  18.     {
  19.         parent::build($container);
  20.         $container->addCompilerPass(new InitializerPass());
  21.         $container->addCompilerPass(new RegisterListenersPass(
  22.             'sulu_document_manager.event_dispatcher',
  23.             'sulu_document_manager.event_listener',
  24.             'sulu_document_manager.event_subscriber'
  25.         ));
  26.     }
  27. }