Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
18 | public static function getRequiredBundle($env) { |
||
19 | $bundles = []; |
||
20 | $bundles['FrameworkBundle'] = '\Symfony\Bundle\FrameworkBundle\FrameworkBundle'; |
||
21 | $bundles['SecurityBundle'] = '\Symfony\Bundle\SecurityBundle\SecurityBundle'; |
||
22 | $bundles['TwigBundle'] = '\Symfony\Bundle\TwigBundle\TwigBundle'; |
||
23 | $bundles['MonologBundle'] = '\Symfony\Bundle\MonologBundle\MonologBundle'; |
||
24 | $bundles['SwiftmailerBundle'] = '\Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle'; |
||
25 | $bundles['DoctrineBundle'] = '\Doctrine\Bundle\DoctrineBundle\DoctrineBundle'; |
||
26 | $bundles['SensioFrameworkExtraBundle'] = '\Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle'; |
||
27 | |||
28 | if(in_array($env, [ |
||
29 | 'dev', |
||
30 | 'test' |
||
31 | ], true)) { |
||
32 | $bundles['DebugBundle'] = '\Symfony\Bundle\DebugBundle\DebugBundle'; |
||
33 | $bundles['WebProfilerBundle'] = '\Symfony\Bundle\WebProfilerBundle\WebProfilerBundle'; |
||
34 | $bundles['SensioDistributionBundle'] = '\Sensio\Bundle\DistributionBundle\SensioDistributionBundle'; |
||
35 | $bundles['SensioGeneratorBundle'] = '\Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle'; |
||
36 | } |
||
37 | return $bundles; |
||
38 | } |
||
39 | |||
49 |