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 16
__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 32
string getCompiledPath(string $path)

Get the path to the compiled version of a view.

Parameters

string $path

Return Value

string

at line 40
bool isExpired(string $path)

Determine if the view at the given path is expired.

Parameters

string $path

Return Value

bool

at line 73
protected void ensureCompiledDirectoryExists(string $path)

Create the compiled file directory if necessary.

Parameters

string $path

Return Value

void