class PhpEngine implements Engine

Methods

__construct(Filesystem $files)

Create a new file engine instance.

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(Throwable $e, int $obLevel)

Handle a view exception.

Details

at line 16
__construct(Filesystem $files)

Create a new file engine instance.

Parameters

Filesystem $files

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

Get the evaluated contents of the view.

Parameters

string $path
array $data

Return Value

string

at line 32
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 55
protected void handleViewException(Throwable $e, int $obLevel)

Handle a view exception.

Parameters

Throwable $e
int $obLevel

Return Value

void

Exceptions

Throwable