class CompilerEngine extends PhpEngine

Properties

protected CompilerInterface $compiler

The Blade compiler instance.

protected array $lastCompiled

A stack of the last compiled templates.

Methods

string
get(string $path, array $data = [])

Get the evaluated contents of the view.

string
evaluatePath(string $__path, array $__data)

Get the evaluated contents of the view at the given path.

void
handleViewException(Exception $e, int $obLevel)

Handle a view exception.

void
__construct(CompilerInterface $compiler)

Create a new Blade view engine instance.

string
getMessage(Exception $e)

Get the exception message for an exception.

getCompiler()

Get the compiler implementation.

Details

at line 43
string get(string $path, array $data = [])

Get the evaluated contents of the view.

Parameters

string $path
array $data

Return Value

string

in PhpEngine at line 30
protected string evaluatePath(string $__path, array $__data)

Get the evaluated contents of the view at the given path.

Parameters

string $__path
array $__data

Return Value

string

at line 75
protected void handleViewException(Exception $e, int $obLevel)

Handle a view exception.

Parameters

Exception $e
int $obLevel

Return Value

void

Exceptions

Exception

at line 31
void __construct(CompilerInterface $compiler)

Create a new Blade view engine instance.

Parameters

CompilerInterface $compiler

Return Value

void

at line 88
protected string getMessage(Exception $e)

Get the exception message for an exception.

Parameters

Exception $e

Return Value

string

at line 98
CompilerInterface getCompiler()

Get the compiler implementation.

Return Value

CompilerInterface