lib/boab/cms-bundle/src/BoabCmsBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace Boab\CmsBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  6. use Boab\CmsBundle\DependencyInjection\Compiler\ContentTypePass;
  7. use Boab\CmsBundle\DependencyInjection\Compiler\AppPass;
  8. use Boab\CmsBundle\DependencyInjection\Compiler\FlysystemLoaderPass;
  9. use Boab\CmsBundle\DependencyInjection\Compiler\SMSMessengerLoaderPass;
  10. class BoabCmsBundle extends Bundle
  11. {
  12.     public function build(ContainerBuilder $container)
  13.     {
  14.         parent::build($container);
  15.         $container->addCompilerPass(new ContentTypePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION32);
  16.         $container->addCompilerPass(new AppPass());
  17.         $container->addCompilerPass(new SMSMessengerLoaderPass());
  18.         $container->addCompilerPass(new FlysystemLoaderPass);
  19.     }
  20.     public function getAlias()
  21.     {
  22.         return 'boab_cms';
  23.     }
  24. }