AppKernel::getCacheDir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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