protected function getDocsConfig($module) { $moduleConfigPath = $this->moduleUtils->getModuleConfigPath($module); $docConfigPath = dirname($moduleConfigPath) . '/documentation.config.php'; if (!file_exists($docConfigPath)) { return null; } $documentation = (include $docConfigPath); return $this->configFactory->createConfigResource($documentation, $docConfigPath); }
/** * @param $module * @return \ZF\Configuration\ConfigResource */ protected function getDocumentationConfigResource($module) { $moduleConfigPath = $this->moduleUtils->getModuleConfigPath($module); $docConfigPath = dirname($moduleConfigPath) . '/documentation.config.php'; $docArray = (file_exists($docConfigPath)) ? include $docConfigPath : array(); return $this->configFactory->createConfigResource($docArray, $docConfigPath); }