/** * Construtor. * * @param ViewAbstract $view * */ public function __construct(ViewAbstract $view) { # configura a pasta de templates da app $this->_applicationPath = $view->config()->get('app.namespace') . self::NAMESPACE_SEPARATOR; $this->_applicationPath = Location::realpathFromNamespace($this->_applicationPath); $this->_scriptPath = $view->getScriptPaths(); $this->_type = $view::T_TYPE; $this->_extension = '.' == substr($view::T_EXTENSION, 0, 1) ? $view::T_EXTENSION : '.' . $view::T_EXTENSION; $this->_view = $view; }
/** * @param string[] $config * */ public function __construct(array $config = array()) { parent::__construct(self::T_TYPE, $config); }