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.
Push a compiled view path onto the stack.
Pop the current compiled view path from the stack.
Get the compiler implementation.
Clear the cache of views that were compiled or not expired.
Flush all static state.
Details
at line 36
__construct(CompilerInterface $compiler, Filesystem $files = null)
Create a new compiler engine instance.
at line 48
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 112
protected void
handleViewException(Throwable $e, int $obLevel)
Handle a view exception.
at line 90
protected void
pushCompiledPath(string $path)
Push a compiled view path onto the stack.
at line 100
protected void
popCompiledPath()
Pop the current compiled view path from the stack.
at line 131
protected string
getMessage(Throwable $e)
Get the exception message for an exception.
at line 141
CompilerInterface
getCompiler()
Get the compiler implementation.
at line 153
static void
forgetCompiledOrNotExpired()
Clear the cache of views that were compiled or not expired.
Boot or tests only when called directly. Clears the worker-wide compile-check cache shared by every coroutine; concurrent compilations may re-check disk redundantly. The view:clear command owns runtime invalidation.
at line 161
static void
flushState()
Flush all static state.