Completed
Push — master ( 8ce185...772880 )
by Pavel
04:21
created

SymfonyTestKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

2 Methods

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