Completed
Push — master ( 62452e...4a089c )
by Kevin
22s queued 10s
created

AppKernel::getProjectDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
/**
7
 * Class AppKernel
8
 */
9
class AppKernel extends Kernel
10
{
11
    /**
12
     * @return array
13
     */
14
    public function registerBundles()
15
    {
16
        return [
17
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
18
            new Symfony\Bundle\TwigBundle\TwigBundle(),
19
            new Liip\MonitorBundle\LiipMonitorBundle(),
20
        ];
21
    }
22
23
    /**
24
     * {@inheritDoc}
25
     */
26
    public function registerContainerConfiguration(LoaderInterface $loader)
27
    {
28
        $loader->load(__DIR__ . '/config_' . $this->environment . '.yml');
29
    }
30
31
    public function getProjectDir()
32
    {
33
        return __DIR__;
34
    }
35
36
}
37