Completed
Pull Request — master (#16)
by Nikola
01:29
created

AppKernel::getRootDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use Symfony\Component\Config\Loader\LoaderInterface;
4
use Symfony\Component\HttpKernel\Kernel;
5
6
class AppKernel extends Kernel
7
{
8
    public function registerBundles()
9
    {
10
        return [
11
            new Go\Symfony\GoAopBundle\GoAopBundle(),
12
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
13
        ];
14
    }
15
16
    public function getRootDir()
17
    {
18
        return __DIR__;
19
    }
20
21
    public function getCacheDir()
22
    {
23
        return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
24
    }
25
26
    public function getLogDir()
27
    {
28
        return dirname(__DIR__).'/var/logs';
29
    }
30
31
    public function registerContainerConfiguration(LoaderInterface $loader)
32
    {
33
        $loader->load($this->getRootDir().'/config/config.yml');
34
    }
35
}
36