Failed Conditions
Push — master ( 876c49...80e3c6 )
by Florent
06:22
created

AppKernel::getCacheDir()   A

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
declare(strict_types=1);
4
5
/*
6
 * The MIT License (MIT)
7
 *
8
 * Copyright (c) 2014-2017 Spomky-Labs
9
 *
10
 * This software may be modified and distributed under the terms
11
 * of the MIT license.  See the LICENSE file for details.
12
 */
13
14
use Symfony\Component\Config\Loader\LoaderInterface;
15
use Symfony\Component\HttpKernel\Kernel;
16
17
/**
18
 * Class AppKernel.
19
 */
20
final class AppKernel extends Kernel
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function registerBundles()
26
    {
27
        $bundles = [
28
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
29
30
            new Http\HttplugBundle\HttplugBundle(),
31
            new Jose\Bundle\JoseFramework\JoseFrameworkBundle(),
32
            new Jose\Bundle\KeyManagement\KeyManagementBundle(),
33
            new Jose\Bundle\Console\ConsoleBundle(),
34
            new Jose\Bundle\Checker\CheckerBundle(),
35
            new Jose\Bundle\Signature\SignatureBundle(),
36
            new Jose\Bundle\Encryption\EncryptionBundle(),
37
38
            new Jose\Test\TestBundle\TestBundle(),
39
        ];
40
41
        return $bundles;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getCacheDir()
48
    {
49
        return sys_get_temp_dir().'/Jose/Bundle/Test';
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function registerContainerConfiguration(LoaderInterface $loader)
56
    {
57
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
58
    }
59
}
60