Passed
Push — master ( 9fce9a...96bafb )
by Ion
05:12
created

Kernel::getProjectDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Infrastructure;
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;
0 ignored issues
show
Bug introduced by
The trait Symfony\Bundle\Framework...Kernel\MicroKernelTrait requires the property $instanceof which is not provided by App\Infrastructure\Kernel.
Loading history...
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