Kernel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
eloc 14
c 2
b 0
f 0
dl 0
loc 30
ccs 0
cts 7
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configureContainer() 0 9 1
A configureRoutes() 0 4 2
A registerBundles() 0 6 1
1
<?php
2
3
/**
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types=1);
9
10
namespace loophp\GoUnflocYourselfBundle\Tests\Fixtures\App;
11
12
use FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle;
13
use loophp\GoUnflocYourselfBundle\GoUnflocYourselfBundle;
14
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
15
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
16
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
17
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
18
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
19
20
final class Kernel extends BaseKernel
21
{
22
    use MicroKernelTrait;
0 ignored issues
show
Bug introduced by
The trait Symfony\Bundle\Framework...Kernel\MicroKernelTrait requires the property $instanceof which is not provided by loophp\GoUnflocYourselfB...sts\Fixtures\App\Kernel.
Loading history...
23
24
    public function registerBundles()
25
    {
26
        return [
27
            new FriendsOfBehatSymfonyExtensionBundle(),
28
            new GoUnflocYourselfBundle(),
29
            new FrameworkBundle(),
30
        ];
31
    }
32
33
    protected function configureContainer(ContainerConfigurator $container): void
34
    {
35
        $container->extension(
36
            'framework',
37
            [
38
                'secret' => 'secret',
39
                'test' => true,
40
                'router' => ['utf8' => true],
41
                'secrets' => false,
42
            ]
43
        );
44
    }
45
46
    protected function configureRoutes(RoutingConfigurator $routes): void
47
    {
48
        foreach (glob(__DIR__ . '/config/*.yaml') as $file) {
49
            $routes->import($file);
50
        }
51
    }
52
}
53