vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/SuluDocumentManagerBundle.php line 21
<?php
/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\DocumentManagerBundle;
use Sulu\Bundle\DocumentManagerBundle\DependencyInjection\Compiler\DocumentFixturePass;
use Sulu\Bundle\DocumentManagerBundle\DependencyInjection\Compiler\InitializerPass;
use Sulu\Bundle\DocumentManagerBundle\DependencyInjection\Compiler\RegisterListenersPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SuluDocumentManagerBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new InitializerPass());
$container->addCompilerPass(new RegisterListenersPass(
'sulu_document_manager.event_dispatcher',
'sulu_document_manager.event_listener',
'sulu_document_manager.event_subscriber'
), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new DocumentFixturePass());
}
}