CompilerEngine
extends PhpEngine
in package
Table of Contents
- $compiler : CompilerInterface
- The Blade compiler instance.
- $lastCompiled : array<string|int, mixed>
- A stack of the last compiled templates.
- __construct() : void
- Create a new Blade view engine instance.
- get() : string
- Get the evaluated contents of the view.
- getCompiler() : CompilerInterface
- Get the compiler implementation.
- evaluatePath() : string
- Get the evaluated contents of the view at the given path.
- getMessage() : string
- Get the exception message for an exception.
- handleViewException() : void
- Handle a view exception.
Properties
$compiler
The Blade compiler instance.
protected
CompilerInterface
$compiler
$lastCompiled
A stack of the last compiled templates.
protected
array<string|int, mixed>
$lastCompiled
= []
Methods
__construct()
Create a new Blade view engine instance.
public
__construct(CompilerInterface $compiler) : void
Parameters
- $compiler : CompilerInterface
Return values
void —get()
Get the evaluated contents of the view.
public
get(string $path[, array<string|int, mixed> $data = [] ]) : string
Parameters
- $path : string
- $data : array<string|int, mixed> = []
Return values
string —getCompiler()
Get the compiler implementation.
public
getCompiler() : CompilerInterface
Return values
CompilerInterface —evaluatePath()
Get the evaluated contents of the view at the given path.
protected
evaluatePath(string $__path, array<string|int, mixed> $__data) : string
Parameters
- $__path : string
- $__data : array<string|int, mixed>
Return values
string —getMessage()
Get the exception message for an exception.
protected
getMessage(Exception $e) : string
Parameters
- $e : Exception
Return values
string —handleViewException()
Handle a view exception.
protected
handleViewException(Exception $e, int $obLevel) : void
Parameters
- $e : Exception
- $obLevel : int