diff --git a/src/Aspect/Provider/MultiFS.php b/src/Aspect/Provider/MultiFS.php deleted file mode 100644 index 5fb4cc8..0000000 --- a/src/Aspect/Provider/MultiFS.php +++ /dev/null @@ -1,57 +0,0 @@ -addTemplateDirs($template_dir); - } - - public function addTemplateDirs($dirs) { - foreach((array)$dirs as $dir) { - $this->addTemplateDir($dir); - } - return $this; - } - - public function addTemplateDir($dir) { - if($_dir = realpath($dir)) { - $this->_tpl_path[] = $_dir; - } else { - throw new \LogicException("Template directory {$dir} doesn't exists"); - } - } - - /** - * Get template path - * @param $tpl - * @return string - * @throws \RuntimeException - */ - protected function _getTemplatePath($tpl) { - foreach($this->_tpl_path as $tpl_path) { - if(($path = realpath($tpl_path."/".$tpl)) && strpos($path, $tpl_path) === 0) { - return $path; - } - } - throw new \RuntimeException("Template $tpl not found"); - } - - /** - * @param string $tpl - * @return bool - */ - public function isTemplateExists($tpl) { - foreach($this->_tpl_path as $tpl_path) { - if(file_exists($tpl_path."/".$tpl)) { - return true; - } - } - - return false; - } -} \ No newline at end of file