public function refresh() { $this->statuses = NULL; $this->fullContainer->refresh(); // and, indirectly, defaultContainer $this->mapper->refresh(); }
/** * Given the class, provides the template path. * * * @param string $clazz * Extension class name. * * @return string * path to extension's templates directory */ public function getTemplatePath($clazz) { $path = $this->container->getPath($this->classToKey($clazz)); return $path . DIRECTORY_SEPARATOR . self::EXT_TEMPLATES_DIRNAME; /* $path = $this->classToPath($clazz); $pathElm = explode(DIRECTORY_SEPARATOR, $path); array_pop($pathElm); return implode(DIRECTORY_SEPARATOR, $pathElm) . DIRECTORY_SEPARATOR . self::EXT_TEMPLATES_DIRNAME; */ }