/** * * @param \Nethgui\View\ViewInterface $view * @param callable $templateResolver * @param string $contentType * @param string $charset */ public function __construct(\Nethgui\View\ViewInterface $view, $templateResolver, $contentType, $charset) { if (!is_callable($templateResolver)) { throw new \InvalidArgumentException(sprintf('%s: $templateResolver must be a valid callback function.', get_class($this)), 1322238847); } parent::__construct($view); $this->templateResolver = $templateResolver; $this->phpWrapper = new \Nethgui\Utility\PhpWrapper(); $this->contentType = $contentType; $this->charset = $charset; }
/** * Constructor * * @param array $messages * @return void */ public function __construct($messages = null) { parent::__construct($messages); $this->_logger = \Log::getRoot(); }