vendor/wearemarketing/webmakerbundle/WAMWebMakerBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace WAM\Bundle\WebMakerBundle;
  3. use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Symfony\Component\HttpKernel\Bundle\Bundle;
  6. use WAM\Bundle\CoreBundle\DependencyInjection\Compiler\InjectTaggedServicesPass;
  7. use WAM\Bundle\CoreBundle\DependencyInjection\Compiler\InjectTaggedWithPriorityServicesPass;
  8. use WAM\Bundle\WebMakerBundle\DependencyInjection\CompilerPass\AddCustomTemplatesToBlockBundlePass;
  9. use WAM\Bundle\WebMakerBundle\DependencyInjection\CompilerPass\CollectionBlockFilterPass;
  10. class WAMWebMakerBundle extends Bundle
  11. {
  12.     public function build(ContainerBuilder $container)
  13.     {
  14.         $container->addCompilerPass(
  15.             DoctrineOrmMappingsPass::createAnnotationMappingDriver(
  16.                 ['%wam_webmaker_page_class%'],
  17.                 ['%wam_webmaker_page_class_dir%'],
  18.                 ['default''orm']
  19.             )
  20.         );
  21.         $container->addCompilerPass(new AddCustomTemplatesToBlockBundlePass());
  22.         $container->addCompilerPass(new CollectionBlockFilterPass());
  23.         $container->addCompilerPass(
  24.             new InjectTaggedWithPriorityServicesPass(
  25.                 'wam.web_maker.block.updater',
  26.                 'block_field_updater',
  27.                 'addUpdater'
  28.             )
  29.         );
  30.         parent::build($container);
  31.     }
  32. }