Ejemplo n.º 1
0
 /**
  * Append or Prepend (default) a path to the BladeView template_paths setting.
  *
  * @param string $path    : path to append to the template_path setting
  * @param bool   $prepend : TRUE to push the new path on the top, FALSE to append
  *
  * @return $this|void
  */
 public function addViewPath($path, $prepend = TRUE)
 {
     parent::addViewPath($path, $prepend);
     # as far as I can tell, we need to reconstruct the FileViewFinder
     $this->view_finder = new FileViewFinder(new Filesystem(), $this->template_paths);
     # also, re-register the view finder. The IOC will handle any update events
     $this->forge->add('view.finder', function () {
         return $this->view_finder;
     });
     # fluent
     return $this;
 }