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.

Extension   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 4
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A loadInternal() 0 9 2
A getAlias() 0 4 1
1
<?php
2
/**
3
 * This file is part of the C33s\StaticPageContentBundle.
4
 *
5
 * (c) consistency <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace C33s\StaticPageContentBundle\DependencyInjection;
12
13
use Symfony\Component\Config\FileLocator;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\DependencyInjection\Loader;
16
use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension;
17
18
class Extension extends ConfigurableExtension
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected function loadInternal(array $mergedConfig, ContainerBuilder $container)
24
    {
25
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
26
        $loader->load('services.xml');
27
28
        foreach($mergedConfig as $name => $value) {
29
            $container->setParameter($this->getAlias() . '.' . $name, $value);
30
        }
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function getAlias()
37
    {
38
        return 'c33s_static_page_content';
39
    }
40
}
41