/** * * @param string $viewpath * @param \Illuminate\Events\Dispatcher $events */ public function __construct($viewpath, \Illuminate\Events\Dispatcher $events = null) { if (is_empty($viewpath)) { throw new NullArgumentException($viewpath); } $cachePath = self::InitCachePath(); if (is_undefined($cachePath)) { throw new BladeCacheException(); } parent::__construct((array) $viewpath, $cachePath, $events); }
public function __construct(Collection $container) { $this->_container = $container; $config = $this->_container->get('settings'); parent::__construct($config->get('app.views_path'), $config->get('cache.path')); }