abstract class Compiler

Methods

__construct(Filesystem $files, string $cachePath, string $basePath = '', bool $shouldCache = true, string $compiledExtension = 'php', bool $shouldCheckTimestamps = true)

Create a new compiler instance.

string
getCompiledPath(string $path)

Get the path to the compiled version of a view.

bool
isExpired(string $path)

Determine if the view at the given path is expired.

void
ensureCompiledDirectoryExists(string $path)

Create the compiled file directory if necessary.

Details

at line 17
__construct(Filesystem $files, string $cachePath, string $basePath = '', bool $shouldCache = true, string $compiledExtension = 'php', bool $shouldCheckTimestamps = true)

Create a new compiler instance.

Parameters

Filesystem $files
string $cachePath
string $basePath
bool $shouldCache
string $compiledExtension
bool $shouldCheckTimestamps

at line 33
string getCompiledPath(string $path)

Get the path to the compiled version of a view.

Parameters

string $path

Return Value

string

at line 43
bool isExpired(string $path)

Determine if the view at the given path is expired.

Parameters

string $path

Return Value

bool

Exceptions

ErrorException

at line 78
protected void ensureCompiledDirectoryExists(string $path)

Create the compiled file directory if necessary.

Parameters

string $path

Return Value

void