readers = $readers; $this->mapper = $mapper; } /** * Reads configuration according to the given 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); } }