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