/** * @throws FileFormatNotParsable * @throws FileNotReadable * * @param string $pathToFile */ private function addSettingsFromPath($pathToFile) { $arrayableFile = $this->arrayableFileFactory->getArrayableFileFromPath($pathToFile); $fileContentsAsArray = $arrayableFile->toArray(); $config = new ConfigTree($fileContentsAsArray); $this->configTreeToReturn = $this->configTreeToReturn->withAnotherConfigTreeMergedIn($config); }