_moduleDirResolver = $dirResolver; } /** * @return string * @throws \UnexpectedValueException */ public function current() { $path = $this->key(); $moduleName = $this->_moduleDirResolver->getModuleName($path); if (!$moduleName) { throw new \UnexpectedValueException( sprintf("Unable to determine a module, file '%s' belongs to.", $this->key()) ); } $fileRead = $this->fileReadFactory->create($this->key(), DriverPool::FILE); $contents = $fileRead->readAll(); return str_replace('