vendor/startplatz/wordpress-integration-bundle/StartplatzWordpressIntegrationBundle.php line 11

Open in your IDE?
  1. <?php
  2. namespace Startplatz\Bundle\WordpressIntegrationBundle;
  3. use Startplatz\Bundle\WordpressIntegrationBundle\DependencyInjection\Compiler\ShortCodeCompilerPass;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Startplatz\Bundle\WordpressIntegrationBundle\Wordpress\SymfonyFacade;
  6. use Symfony\Component\DependencyInjection\ContainerInterface;
  7. use Symfony\Component\HttpKernel\Bundle\Bundle;
  8. class StartplatzWordpressIntegrationBundle extends Bundle
  9. {
  10.     public function build(ContainerBuilder $container)
  11.     {
  12.         parent::build($container);
  13.         $container->addCompilerPass(new ShortCodeCompilerPass());
  14.     }
  15.     public function boot()
  16.     {
  17.         SymfonyFacade::setContainer($this->container);
  18.     }
  19. }