FlySystemLoader
in package
implements
LoaderInterface
Interfaces, Classes and Traits
- LoaderInterface
Table of Contents
- $filesystem : FilesystemInterface
- $overloadPrefix : string|null
- $templatePath : string
- __construct() : mixed
- exists() : mixed
- getCacheKey() : mixed
- Gets the cache key to use for the cache for a given template name.
- getSourceContext() : mixed
- isFresh() : mixed
- guardTemplateExistsAndIsFile() : void
- resolveTemplateName() : string
Properties
$filesystem
private
FilesystemInterface
$filesystem
$overloadPrefix
private
string|null
$overloadPrefix
$templatePath
private
string
$templatePath
Methods
__construct()
public
__construct(FilesystemInterface $filesystem[, string $templatePath = '' ][, string|null $overloadPrefix = null ]) : mixed
Parameters
- $filesystem : FilesystemInterface
- $templatePath : string = ''
- $overloadPrefix : string|null = null
Return values
mixed —exists()
public
exists(mixed $name) : mixed
Parameters
- $name : mixed
Tags
Return values
mixed —getCacheKey()
Gets the cache key to use for the cache for a given template name.
public
getCacheKey(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
- $name : mixed
Tags
Return values
mixed —getSourceContext()
public
getSourceContext(mixed $name) : mixed
Parameters
- $name : mixed
Tags
Return values
mixed —isFresh()
public
isFresh(mixed $name, mixed $time) : mixed
Parameters
- $name : mixed
- $time : mixed
Tags
Return values
mixed —guardTemplateExistsAndIsFile()
private
guardTemplateExistsAndIsFile(string $name) : void
Parameters
- $name : string
Tags
Return values
void —resolveTemplateName()
private
resolveTemplateName(string $name) : string
Parameters
- $name : string