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
Pull Request — master (#391)
by
unknown
31:21
created

WithoutDoctrineKernel::addBundle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 6
loc 6
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
4
namespace Hautelook\AliceBundle\Functional;
5
6
use Hautelook\AliceBundle\HautelookAliceBundle;
7
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
8
use Symfony\Component\Config\Loader\LoaderInterface;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
use Symfony\Component\HttpKernel\Kernel;
11
12
/**
13
 * Class WithoutDoctrineKernel
14
 * @package Hautelook\AliceBundle\Functional
15
 * @author Dennis Langen <[email protected]>
16
 */
17 View Code Duplication
class WithoutDoctrineKernel extends Kernel
18
{
19
20
    private $addedBundles = [];
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function registerBundles()
26
    {
27
        return array_merge(
28
            [
29
                new FrameworkBundle(),
30
                new HautelookAliceBundle(),
31
            ],
32
            $this->addedBundles
33
        );
34
    }
35
36
    public function addBundle(Bundle $bundle): self
37
    {
38
        $this->addedBundles[] = $bundle;
39
40
        return $this;
41
    }
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public function registerContainerConfiguration(LoaderInterface $loader)
47
    {
48
        $loader->load(__DIR__.'/config/config_without_doctrine.yml');
49
    }
50
}
51