| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | protected function registerRepository(string $identifier, string $name, string $description, string $repositoryFileName): void |
||
| 21 | { |
||
| 22 | $repoArray = [ |
||
| 23 | 'adapter' => 'yaml', |
||
| 24 | 'name' => $name, |
||
| 25 | 'description' => $description, |
||
| 26 | 'config' => [ |
||
| 27 | 'file' => $repositoryFileName |
||
| 28 | ] |
||
| 29 | ]; |
||
| 30 | |||
| 31 | $configHandler = $this->getConfigHandler(); |
||
| 32 | |||
| 33 | $config = $configHandler->parseConfig(); |
||
| 34 | $config->addRepository($identifier, $repoArray); |
||
| 35 | $configHandler->dumpConfig($config); |
||
| 36 | } |
||
| 38 |