Property | Type | Description | |
---|---|---|---|
$cache | Template lookup cache. | ||
$extension | Twig file extension. | ||
$files | Illuminate\Filesystem\Filesystem | ||
$finder | Illuminate\View\ViewFinderInterface |
Method | Description | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\View\ViewFinderInterface $finder, string $extension = 'twig' ) | ||
exists ( $name ) | ||
findTemplate ( string $name ) : string | Return path to template without the need for the extension. | |
getCacheKey ( $name ) | ||
getSourceContext ( $name ) | ||
isFresh ( $name, $time ) |
Method | Description | |
---|---|---|
normalizeName ( string $name ) : string | Normalize the Twig template name to a name the ViewFinder can use |
public __construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\View\ViewFinderInterface $finder, string $extension = 'twig' ) | ||
$files | Illuminate\Filesystem\Filesystem | The filesystem |
$finder | Illuminate\View\ViewFinderInterface | |
$extension | string | Twig file extension. |
public findTemplate ( string $name ) : string | ||
$name | string | Template file name or path. |
return | string | Path to template |
protected normalizeName ( string $name ) : string | ||
$name | string | Template file name. |
return | string | The parsed name |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |