reader = $reader; $this->configType = $configType; $this->fileKey = $fileKey; } /** * @inheritdoc */ public function get($path = '') { $data = new DataObject($this->reader->load()); if ($path !== '' && $path !== null) { $path = '/' . $path; } return $data->getData($this->configType . $path) ?: []; } }