| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class AppKernel extends Kernel |
||
| 7 | { |
||
| 8 | public function registerBundles() |
||
| 9 | { |
||
| 10 | $bundles = [ |
||
| 11 | new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
| 12 | new Symfony\Bundle\TwigBundle\TwigBundle(), |
||
|
|
|||
| 13 | new Symfony\Bundle\AsseticBundle\AsseticBundle(), |
||
| 14 | new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
||
| 15 | new AppBundle\AppBundle(), |
||
| 16 | new Devmachine\Bundle\FormBundle\DevmachineFormBundle(), |
||
| 17 | ]; |
||
| 18 | |||
| 19 | if (in_array($this->getEnvironment(), ['dev', 'test'])) { |
||
| 20 | $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); |
||
| 21 | $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); |
||
| 22 | $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); |
||
| 23 | $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); |
||
| 24 | } |
||
| 25 | |||
| 26 | return $bundles; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getRootDir() |
||
| 30 | { |
||
| 31 | return __DIR__; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getCacheDir() |
||
| 35 | { |
||
| 36 | return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getLogDir() |
||
| 42 | } |
||
| 43 | |||
| 44 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
| 45 | { |
||
| 49 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths