Completed
Pull Request — develop (#17)
by Mario
02:53
created

ConfigLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace App\Tenant\Loader;
4
5
use Ds\Component\Config\Service\ConfigService;
6
use Ds\Component\Config\Tenant\Loader\Config;
7
use Ds\Component\Tenant\Entity\Tenant;
8
use Ds\Component\Tenant\Loader\Loader;
9
use Symfony\Component\Yaml\Yaml;
10
11
/**
12
 * Class ConfigLoader
13
 */
14
final class ConfigLoader implements Loader
15
{
16
    use Config;
17
18
    /**
19
     * Constructor
20
     *
21
     * @param \Ds\Component\Config\Service\ConfigService $configService
22
     */
23
    public function __construct(ConfigService $configService)
24
    {
25
        $this->configService = $configService;
26
        $this->path = '/srv/api/config/tenant/loader/config.yaml';
27
    }
28
}
29