AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 28
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A registerContainerConfiguration() 0 3 1
A registerBundles() 0 9 1
A getCacheDir() 0 3 1
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