vendor/shapecode/cron-bundle/src/ShapecodeCronBundle.php line 16

Open in your IDE?
  1. <?php
  2. namespace Shapecode\Bundle\CronBundle;
  3. use Shapecode\Bundle\CronBundle\DependencyInjection\Compiler\CronJobCompilerPass;
  4. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. /**
  8.  * Class ShapecodeCronBundle
  9.  *
  10.  * @package Shapecode\Bundle\CronBundle
  11.  * @author  Nikita Loges
  12.  */
  13. class ShapecodeCronBundle extends Bundle
  14. {
  15.     /**
  16.      * @inheritdoc
  17.      */
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new CronJobCompilerPass(), PassConfig::TYPE_AFTER_REMOVING);
  22.     }
  23. }