Failed Conditions
Pull Request — master (#125)
by Florent
05:26
created

AppKernel::getLogDir()   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-2018 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
namespace OAuth2Framework\ServerBundle\Tests;
15
16
use Http\HttplugBundle\HttplugBundle;
17
use Jose\Bundle\JoseFramework\JoseFrameworkBundle;
18
use OAuth2Framework\ServerBundle\OAuth2FrameworkServerBundle;
19
use OAuth2Framework\ServerBundle\Tests\TestBundle\TestBundle;
20
use Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle;
21
use Symfony\Bundle\SecurityBundle\SecurityBundle;
22
use Symfony\Bundle\TwigBundle\TwigBundle;
23
use Symfony\Component\Config\Loader\LoaderInterface;
24
use Symfony\Component\HttpKernel\Kernel;
25
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
26
27
/**
28
 * Class AppKernel.
29
 */
30
class AppKernel extends Kernel
31
{
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function __construct(string $environment, bool $debug)
36
    {
37
        parent::__construct($environment, false);
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function registerBundles()
44
    {
45
        $bundles = [
46
            new FrameworkBundle(),
47
            new SecurityBundle(),
48
            new TwigBundle(),
49
            new SensioFrameworkExtraBundle(),
50
            new HttplugBundle(),
51
52
            new OAuth2FrameworkServerBundle(),
53
            new TestBundle(),
54
55
            new JoseFrameworkBundle(),
56
        ];
57
58
        return $bundles;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function registerContainerConfiguration(LoaderInterface $loader)
65
    {
66
        $loader->load(__DIR__.'/config/config_test.yml');
67
    }
68
}
69