Completed
Push — master ( cf207c...9dbd6f )
by Valery
08:47
created

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 4
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configureContainer() 0 7 1
A configureRoutes() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App;
6
7
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
8
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
9
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
10
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
11
12
class Kernel extends BaseKernel
13
{
14
    use MicroKernelTrait;
15
16
    protected function configureContainer(ContainerConfigurator $container): void
17
    {
18
        $container->import('../config/{packages}/*.yaml');
19
        $container->import('../config/{packages}/'.$this->environment.'/*.yaml');
20
        $container->import('../config/{services}.yaml');
21
        $container->import('../config/{services}_'.$this->environment.'.yaml');
22
    }
23
24
    protected function configureRoutes(RoutingConfigurator $routes): void
25
    {
26
        $routes->import('../config/{routes}/'.$this->environment.'/*.yaml');
27
        $routes->import('../config/{routes}/*.yaml');
28
        $routes->import('../config/{routes}.yaml');
29
    }
30
}
31