| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public static function getRequiredBundles($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 | $bundles['DoctrineBehaviorsBundle'] = '\Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle'; |
||
| 28 | |||
| 29 | if(in_array($env, [ |
||
| 30 | 'dev', |
||
| 31 | 'test' |
||
| 32 | ], true)) { |
||
| 33 | $bundles['DebugBundle'] = '\Symfony\Bundle\DebugBundle\DebugBundle'; |
||
| 34 | $bundles['WebProfilerBundle'] = '\Symfony\Bundle\WebProfilerBundle\WebProfilerBundle'; |
||
| 35 | $bundles['SensioDistributionBundle'] = '\Sensio\Bundle\DistributionBundle\SensioDistributionBundle'; |
||
| 36 | $bundles['SensioGeneratorBundle'] = '\Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle'; |
||
| 37 | } |
||
| 38 | return $bundles; |
||
| 39 | } |
||
| 40 | |||
| 50 |