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 compiled view paths verified as not expired. |
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 compiled view paths verified as 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 115
protected void
handleViewException(Throwable $e, int $obLevel)
Handle a view exception.
at line 93
protected void
pushCompiledPath(string $path)
Push a compiled view path onto the stack.
at line 103
protected void
popCompiledPath()
Pop the current compiled view path from the stack.
at line 134
protected string
getMessage(Throwable $e)
Get the exception message for an exception.
at line 144
CompilerInterface
getCompiler()
Get the compiler implementation.
at line 156
static void
forgetCompiledOrNotExpired()
Clear the cache of compiled view paths verified as not expired.
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 164
static void
flushState()
Flush all static state.