1 | <?php |
||
22 | class AppKernel extends Kernel |
||
23 | { |
||
24 | public function registerBundles() |
||
25 | { |
||
26 | $bundles = array( |
||
27 | new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
28 | new Symfony\Bundle\SecurityBundle\SecurityBundle(), |
||
29 | new Symfony\Bundle\TwigBundle\TwigBundle(), |
||
30 | new Symfony\Bundle\MonologBundle\MonologBundle(), |
||
31 | new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), |
||
32 | new Symfony\Bundle\AsseticBundle\AsseticBundle(), |
||
33 | new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), |
||
34 | new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
||
35 | new Surfnet\StepupGateway\ApiBundle\SurfnetStepupGatewayApiBundle(), |
||
36 | new Nelmio\SecurityBundle\NelmioSecurityBundle(), |
||
37 | new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), |
||
38 | new Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle(), |
||
39 | new Surfnet\MessageBirdApiClientBundle\SurfnetMessageBirdApiClientBundle(), |
||
40 | new Surfnet\YubikeyApiClientBundle\SurfnetYubikeyApiClientBundle(), |
||
41 | new Surfnet\StepupBundle\SurfnetStepupBundle(), |
||
42 | new Surfnet\StepupGateway\GatewayBundle\SurfnetStepupGatewayGatewayBundle(), |
||
43 | new Surfnet\SamlBundle\SurfnetSamlBundle(), |
||
44 | new JMS\TranslationBundle\JMSTranslationBundle(), |
||
45 | new JMS\DiExtraBundle\JMSDiExtraBundle($this), |
||
46 | new JMS\AopBundle\JMSAopBundle(), |
||
47 | new Surfnet\StepupGateway\SamlStepupProviderBundle\SurfnetStepupGatewaySamlStepupProviderBundle(), |
||
48 | new Surfnet\StepupGateway\SecondFactorOnlyBundle\SurfnetStepupGatewaySecondFactorOnlyBundle(), |
||
49 | new Surfnet\StepupGateway\U2fVerificationBundle\SurfnetStepupGatewayU2fVerificationBundle(), |
||
50 | new Surfnet\StepupU2fBundle\SurfnetStepupU2fBundle(), |
||
51 | ); |
||
52 | |||
53 | if (in_array($this->getEnvironment(), array('dev', 'test'))) { |
||
54 | $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); |
||
55 | $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); |
||
56 | $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); |
||
57 | } |
||
58 | |||
59 | return $bundles; |
||
60 | } |
||
61 | |||
62 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
66 | } |
||
67 |