GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( df8c18...6eb035 )
by Théo
70:05 queued 35:07
created

ConfigurableKernel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 5
dl 0
loc 34
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 11 1
A addBundle() 0 6 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\Functional;
13
14
use Hautelook\AliceBundle\HautelookAliceBundle;
15
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
16
use Symfony\Bundle\MonologBundle\MonologBundle;
17
use Symfony\Component\Config\Loader\LoaderInterface;
18
use Symfony\Component\HttpKernel\Bundle\Bundle;
19
use Symfony\Component\HttpKernel\Kernel;
20
21
/**
22
 * @author Théo FIDRY <[email protected]>
23
 */
24
class ConfigurableKernel extends Kernel
25
{
26
    private $addedBundles = [];
27
28
    /**
29
     * @inheritdoc
30
     */
31
    public function registerBundles()
32
    {
33
        return array_merge(
34
            [
35
                new FrameworkBundle(),
36
                new MonologBundle(),
37
                new HautelookAliceBundle(),
38
            ],
39
            $this->addedBundles
40
        );
41
    }
42
43
    public function addBundle(Bundle $bundle): self
44
    {
45
        $this->addedBundles[] = $bundle;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @inheritdoc
52
     */
53
    public function registerContainerConfiguration(LoaderInterface $loader)
54
    {
55
        $loader->load(__DIR__.'/config/config.yml');
56
    }
57
}
58