예제 #1
0
 /**
  *
  * @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);
 }
예제 #2
0
파일: View.php 프로젝트: zigiphp/zigiphp
 public function __construct(Collection $container)
 {
     $this->_container = $container;
     $config = $this->_container->get('settings');
     parent::__construct($config->get('app.views_path'), $config->get('cache.path'));
 }