| 1 | <?php |
||
| 10 | class ConfigReader |
||
| 11 | { |
||
| 12 | /** @var FileParser[] */ |
||
| 13 | private $fileParsers; |
||
| 14 | |||
| 15 | public function __construct(array $fileParsers = null) |
||
| 19 | |||
| 20 | public function addFileParser(FileParser $fileParser) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @throws ConfigReaderException |
||
| 27 | */ |
||
| 28 | public function getConfigArray(string $pathToConfig): array |
||
| 33 | |||
| 34 | private function getContentsAsArray(string $path): array |
||
| 46 | |||
| 47 | private function assertIsReadable(string $path) |
||
| 53 | } |
||
| 54 |