vendor/eko/feedbundle/EkoFeedBundle.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Eko\FeedBundle Symfony bundle.
  4.  *
  5.  * (c) Vincent Composieux <vincent.composieux@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Eko\FeedBundle;
  11. use Eko\FeedBundle\DependencyInjection\Compiler\FeedDumpServicePass;
  12. use Eko\FeedBundle\DependencyInjection\Compiler\FeedFormatterPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * EkoFeedBundle.
  17.  *
  18.  * This is the main bundle class
  19.  *
  20.  * @author Vincent Composieux <vincent.composieux@gmail.com>
  21.  */
  22. class EkoFeedBundle extends Bundle
  23. {
  24.     /**
  25.      * {@inheritdoc}
  26.      */
  27.     public function build(ContainerBuilder $container)
  28.     {
  29.         parent::build($container);
  30.         $container->addCompilerPass(new FeedFormatterPass());
  31.         $container->addCompilerPass(new FeedDumpServicePass());
  32.     }
  33. }