src/Cms/SyncBundle/CmsSyncBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace Cms\SyncBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. use Cms\SyncBundle\DependencyInjection\Compiler\SyncHandlerCompilerPass;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. /**
  7.  * Class CmsSyncBundle
  8.  * @package Cms\SyncBundle
  9.  */
  10. class CmsSyncBundle extends Bundle
  11. {
  12.     /**
  13.      * {@inheritdoc}
  14.      */
  15.     public function build(ContainerBuilder $container)
  16.     {
  17.         // call parent
  18.         parent::build($container);
  19.         // register compiler passes
  20.         $container
  21.             ->addCompilerPass(new SyncHandlerCompilerPass())
  22.         ;
  23.     }
  24. }