Completed
Push — master ( 1a456d...8db859 )
by Tomáš
07:37
created

AppKernel::__construct()   A

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\DefaultAutowire\Tests;
6
7
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
8
use Symfony\Component\Config\Loader\LoaderInterface;
9
use Symfony\Component\HttpKernel\Kernel;
10
use Symplify\DefaultAutowire\SymplifyDefaultAutowireBundle;
11
12
final class AppKernel extends Kernel
13
{
14
    public function __construct()
15
    {
16
        parent::__construct('DefaultAutowire' . mt_rand(1, 100), true);
17
    }
18
19
    public function registerBundles()
20
    {
21
        return [
22
            new SymplifyDefaultAutowireBundle(),
23
            new DoctrineBundle(),
24
        ];
25
    }
26
27
    public function registerContainerConfiguration(LoaderInterface $loader)
28
    {
29
        $loader->load(__DIR__ . '/Resources/config/config.yml');
30
    }
31
}
32