AppKernel::getCacheDir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace Pfilsx\FormLayer\Tests\app;
5
6
7
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
8
use Pfilsx\FormLayer\FormLayerBundle;
9
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
10
use Symfony\Bundle\MakerBundle\MakerBundle;
11
use Symfony\Component\Config\Loader\LoaderInterface;
12
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
13
use Symfony\Component\HttpKernel\Kernel;
14
15
class AppKernel extends Kernel
16
{
17
18
    /**
19
     * Returns an array of bundles to register.
20
     *
21
     * @return iterable|BundleInterface[] An iterable of bundle instances
22
     */
23
    public function registerBundles()
24
    {
25
        $bundles = array(
26
            new FrameworkBundle(),
27
            new DoctrineBundle(),
28
            new MakerBundle(),
29
            new FormLayerBundle(),
30
        );
31
        return $bundles;
32
    }
33
34
35
    public function registerContainerConfiguration(LoaderInterface $loader)
36
    {
37
        $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
38
    }
39
40
    public function getCacheDir()
41
    {
42
        return __DIR__ . '/cache/' . $this->environment;
43
    }
44
}
45