Exemplo n.º 1
0
 /**
  * Get the compiled path of a view.
  *
  * @param View $view
  *
  * @return string
  */
 function get_compiled_path(View $view)
 {
     /** @type CompilerEngine $engine */
     $engine = $view->getEngine();
     /** @type BladeCompiler $compiler */
     $compiler = $engine->getCompiler();
     $path = $view->getPath();
     if ($compiler->isExpired($path)) {
         $compiler->compile($path);
     }
     $compiled = $compiler->getCompiledPath($path);
     return $compiled;
 }