Esempio n. 1
0
 /**
  * Clone compiler with reconfigured namespace and view.
  *
  * @param string $namespace
  * @param string $view
  * @return Compiler
  */
 public function reconfigure($namespace, $view)
 {
     $compiler = clone $this;
     $compiler->namespace = $namespace;
     $compiler->view = $view;
     //Must be the same engine
     $compiler->filename = $this->views->getFilename($namespace, $view);
     $compiler->compiledFilename = '';
     //Processors has to be regenerated to flush content
     $compiler->processors = [];
     return $compiler;
 }