AppKernel::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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