SymfonyTestKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerContainerConfiguration() 0 6 1
A buildContainer() 0 7 1
1
<?php
2
3
namespace ScayTrase\Api\Cruds\Tests\Fixtures\SymfonySerializer;
4
5
use ScayTrase\Api\Cruds\Tests\Fixtures\Common\CrudsTestKernel;
6
use Symfony\Component\Config\Loader\LoaderInterface;
7
use Symfony\Component\Config\Resource\FileResource;
8
9
final class SymfonyTestKernel extends CrudsTestKernel
10
{
11
    /** {@inheritdoc} */
12
    public function registerContainerConfiguration(LoaderInterface $loader)
13
    {
14
        parent::registerContainerConfiguration($loader);
15
16
        $loader->load(__DIR__ . '/config.yml');
17
    }
18
19
    /** {@inheritdoc} */
20
    protected function buildContainer()
21
    {
22
        $container = parent::buildContainer();
23
        $container->addResource(new FileResource(__DIR__ . '/config.yml'));
24
25
        return $container;
26
    }
27
}
28