AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

3 Methods

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