mapper = $mapper; $this->readers = $readers; } /** * Read configuration scope. * * @param string|null $scope * @return array */ public function read($scope = null) { $data = []; foreach ($this->readers as $reader) { $data = array_merge_recursive($data, $reader->read($scope)); } return $this->mapper->execute($data); } }