AppKernel   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 41
rs 10
c 0
b 0
f 0
wmc 6

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getLogDir() 0 3 1
A registerBundles() 0 19 2
A getCacheDir() 0 3 1
A getRootDir() 0 3 1
A registerContainerConfiguration() 0 3 1
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
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(),
0 ignored issues
show
Bug introduced by
The type Symfony\Bundle\TwigBundle\TwigBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
0 ignored issues
show
Bug introduced by
The type Symfony\Bundle\AsseticBundle\AsseticBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
0 ignored issues
show
Bug introduced by
The type Sensio\Bundle\FrameworkE...sioFrameworkExtraBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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();
0 ignored issues
show
Bug introduced by
The type Symfony\Bundle\DebugBundle\DebugBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
21
            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
0 ignored issues
show
Bug introduced by
The type Symfony\Bundle\WebProfilerBundle\WebProfilerBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
            $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
0 ignored issues
show
Bug introduced by
The type Sensio\Bundle\Distributi...ensioDistributionBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
0 ignored issues
show
Bug introduced by
The type Sensio\Bundle\GeneratorB...e\SensioGeneratorBundle was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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()
40
    {
41
        return dirname(__DIR__).'/var/logs';
42
    }
43
44
    public function registerContainerConfiguration(LoaderInterface $loader)
45
    {
46
        $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
47
    }
48
}
49