docker/SASCommonBundle/CUSASCommonBundle.php line 14

Open in your IDE?
  1. <?php
  2. namespace CU\SASCommonBundle;
  3. use CU\SASCommonBundle\DependencyInjection\Compiler\FormLookupPass;
  4. use CU\SASCommonBundle\DependencyInjection\Compiler\JobManagerInterfacePass;
  5. use CU\SASCommonBundle\DependencyInjection\Security\CUFactory;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. /**
  9.  *
  10.  * @author "Cornell University, Student Services IT"
  11.  */
  12. class CUSASCommonBundle extends Bundle
  13. {
  14.     public function build(ContainerBuilder $container)
  15.     {
  16.         parent::build($container);
  17.         // register our form lookup typecompiler pass
  18.         $container->addCompilerPass(new FormLookupPass());
  19.         // register our JobManager interface pass
  20.         $container->addCompilerPass(new JobManagerInterfacePass());
  21.         // register our security listener
  22.         $extension $container->getExtension('security');
  23.         $extension->addSecurityListenerFactory(new CUFactory());
  24.     }
  25. }