vendor/sulu/sulu/src/Sulu/Bundle/MarkupBundle/SuluMarkupBundle.php line 23

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\MarkupBundle;
  11. use Sulu\Bundle\MarkupBundle\DependencyInjection\CompilerPass\ParserCompilerPass;
  12. use Sulu\Bundle\MarkupBundle\DependencyInjection\CompilerPass\TagCompilerPass;
  13. use Sulu\Component\Symfony\CompilerPass\TaggedServiceCollectorCompilerPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17.  * Integrates markup into symfony.
  18.  */
  19. class SuluMarkupBundle extends Bundle
  20. {
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         parent::build($container);
  24.         $container->addCompilerPass(new ParserCompilerPass());
  25.         $container->addCompilerPass(new TagCompilerPass());
  26.         $container->addCompilerPass(
  27.             new TaggedServiceCollectorCompilerPass(
  28.                 'sulu_markup.parser.delegating_html_extractor',
  29.                 'sulu_markup.parser.html_extractor'
  30.             )
  31.         );
  32.         $container->addCompilerPass(
  33.             new TaggedServiceCollectorCompilerPass(
  34.                 'sulu_markup.link_tag.provider_pool',
  35.                 'sulu.link.provider',
  36.                 0,
  37.                 'alias'
  38.             )
  39.         );
  40.     }
  41. }