| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class YamlConfigurator implements ConfiguratorInterface |
||
| 16 | { |
||
| 17 | 1 | public function getParams(): array |
|
| 18 | { |
||
| 19 | 1 | $parser = new Parser(); |
|
| 20 | 1 | $config = $parser->parseFile(getenv('APP_ROOT').'/config/config.yml')['database']; |
|
| 21 | |||
| 22 | 1 | return $this->createParams($config); |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | private function createParams(array $config): array |
|
| 43 | } |
||
| 44 | } |
||
| 45 |