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

ConfigLoader::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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