/** * Constructor * * @param string $path */ public function __construct($path, $sharedItem, $isLink = false) { parent::__construct($sharedItem->getPath()); $this->linkPath = $path; $this->sharedItem = $sharedItem; $this->isLink = $isLink; }
public function __construct(API $base, $path, $webpath) { parent::__construct($base, $path); require_once 'Twig/Autoloader.php'; $this->webpath = $webpath; $settings = $this->base->debug() ? [] : ['cache' => $this->base->cachePath()]; try { \Twig_Autoloader::register(); $this->loader = new \Twig_Loader_Filesystem($path); $this->twig = new \Twig_Environment($this->loader, []); } catch (\Twig_Error_Loader $e) { throw new TemplateException($e); } }
public function __construct($path, $name) { parent::__construct($path); $this->name = $name; }