AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 8

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 8
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 14 1
A getCacheDir() 0 4 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2016 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
use Symfony\Component\Config\Loader\LoaderInterface;
13
use Symfony\Component\HttpKernel\Kernel;
14
15
class AppKernel extends Kernel
16
{
17
    public function registerBundles()
18
    {
19
        $bundles = [
20
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
21
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
22
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
23
            new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
24
25
            new SpomkyLabs\RoleHierarchyBundle\SpomkyLabsRoleHierarchyBundle(),
26
            new SpomkyLabs\TestRoleHierarchyBundle\SpomkyLabsTestRoleHierarchyBundle(),
27
        ];
28
29
        return $bundles;
30
    }
31
32
    public function getCacheDir()
33
    {
34
        return sys_get_temp_dir().'/SpomkyLabsTestRoleHierarchyBundle';
35
    }
36
37
    public function registerContainerConfiguration(LoaderInterface $loader)
38
    {
39
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
40
    }
41
}
42