Completed
Push — master ( a0c467...7d26e1 )
by Tomáš
05:50
created

AppKernelWithAlias   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5
Metric Value
wmc 2
lcom 0
cbo 5
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 8 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
namespace Symplify\ControllerAutowire\Tests;
4
5
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
6
use Symfony\Component\Config\Loader\LoaderInterface;
7
use Symfony\Component\HttpKernel\Kernel;
8
use Symplify\ControllerAutowire\Tests\AliasingBundle\AliasingBundle;
9
use Symplify\ControllerAutowire\SymplifyControllerAutowireBundle;
10
11
final class AppKernelWithAlias extends Kernel
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function registerBundles()
17
    {
18
        return [
19
            new FrameworkBundle(),
20
            new SymplifyControllerAutowireBundle(),
21
            new AliasingBundle(),
22
        ];
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function registerContainerConfiguration(LoaderInterface $loader)
29
    {
30
        $loader->load(__DIR__.'/Resources/config/config.yml');
31
    }
32
}
33