FlySystemLoader
in package
Implements
LoaderInterface
Interfaces, Classes & Used Traits
- LoaderInterface
Properties
$filesystem Line 27
private$filesystem : \League\Flysystem\FilesystemInterface
$templatePath Line 30
private$templatePath : string
Methods
__construct() Line 32
public__construct(FilesystemInterface $filesystem[, string $templatePath = '' ]) : mixed
Parameters
Returns
mixed —
getSourceContext() Line 41
publicgetSourceContext(mixed $name) : mixed
Parameters
Returns
mixed —
exists() Line 57
publicexists(mixed $name) : mixed
Parameters
Returns
mixed —
getCacheKey() Line 72
Gets the cache key to use for the cache for a given template name.
publicgetCacheKey(mixed $name) : mixed
Simple straightforward implementation that checks the existence of the template, and if it exists: returns the name to be used as a cache key.
Parameters
Throws
- \Twig\Error\LoaderError
When $name is not found.
Returns
mixed —
isFresh() Line 82
publicisFresh(mixed $name, mixed $time) : mixed
Parameters
Returns
mixed —
guardTemplateExistsAndIsFile() Line 94
privateguardTemplateExistsAndIsFile(string $name) : void
Parameters
Throws
- \Twig\Error\LoaderError