/** * Gets the full information about the provided module * @param string $namespace The namespace of the module * @param string $name The name of the module * @return array Array with the attributes of the module */ public function getModule($namespace, $name) { $module = $this->repository->getModule($namespace, $name); return $this->getFullModuleArray($module); }
/** * Action to show the detail of a module * @param string $namespace Namespace of the module * @param string $name Name of the module * @return null */ public function moduleAction($namespace = null, $name = null) { try { $module = $this->repository->getModule($namespace, $name); } catch (ModuleNotFoundException $exception) { $this->setError404(); return; } $view = $this->getModuleView($module); $this->response->setView($view); }