CompilerEngine
class CompilerEngine extends PhpEngine
Constants
| COMPILED_PATH_CONTEXT_KEY |
The context key for a stack of the compiled template path. |
Properties
| static protected array<string, true> | $compiledOrNotExpired | The view paths that were compiled or are not expired, keyed by the path. |
Methods
Create a new compiler engine instance.
Get the evaluated contents of the view.
Get the evaluated contents of the view at the given path.
No description
No description
Get the compiler implementation.
Clear the cache of views that were compiled or not expired.
Details
at line 35
__construct(CompilerInterface $compiler, Filesystem $files = null)
Create a new compiler engine instance.
at line 47
string
get(string $path, array $data = [])
Get the evaluated contents of the view.
in
PhpEngine at line 32
protected string
evaluatePath(string $path, array $data)
Get the evaluated contents of the view at the given path.
at line 104
protected void
handleViewException(Throwable $e, int $obLevel)
Handle a view exception.
at line 85
protected void
pushCompiledPath(string $path)
No description
at line 92
protected void
popCompiledPath()
No description
at line 122
protected string
getMessage(Throwable $e)
Get the exception message for an exception.
at line 132
CompilerInterface
getCompiler()
Get the compiler implementation.
at line 143
static void
forgetCompiledOrNotExpired()
Clear the cache of views that were compiled or not expired.
Boot or tests only. Clears the worker-wide compile-check cache shared by every coroutine; concurrent compilations may re-check disk redundantly.