Compiler
in package
Table of Contents
- $cachePath : string
- Get the cache path for the compiled views.
- $files : Filesystem
- The Filesystem instance.
- __construct() : void
- Create a new compiler instance.
- getCompiledPath() : string
- Get the path to the compiled version of a view.
- isExpired() : bool
- Determine if the view at the given path is expired.
Properties
$cachePath
Get the cache path for the compiled views.
protected
string
$cachePath
$files
The Filesystem instance.
protected
Filesystem
$files
Methods
__construct()
Create a new compiler instance.
public
__construct(Filesystem $files, string $cachePath) : void
Parameters
- $files : Filesystem
- $cachePath : string
Tags
Return values
void —getCompiledPath()
Get the path to the compiled version of a view.
public
getCompiledPath(string $path) : string
Parameters
- $path : string
Return values
string —isExpired()
Determine if the view at the given path is expired.
public
isExpired(string $path) : bool
Parameters
- $path : string