class Illuminate / View / Engines / CompilerEngine
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

CompilerEngine

Extends

Properties

protected

$compiler CompilerInterface

The Blade compiler instance.

Default: null
protected

$lastCompiled array

A stack of the last compiled templates.

Default: []
protected

$compiledOrNotExpired array

The view paths that were compiled or are not expired, keyed by the path.

Default: []

Methods

public

__construct ( CompilerInterface $compiler , Filesystem $files ) : void

Create a new compiler engine instance.

Parameters

public

get ( $path , array $data ) : string

Get the evaluated contents of the view.

Parameters

  • $path string
  • $data array
protected

handleViewException ( Throwable $e , $obLevel ) : void

Handle a view exception.

Parameters

protected

getMessage ( Throwable $e ) : string

Get the exception message for an exception.

Parameters

public

getCompiler ( ) : CompilerInterface

Get the compiler implementation.

public

forgetCompiledOrNotExpired ( ) : void

Clear the cache of views that were compiled or not expired.