class FilesystemLoader implements LoaderInterface
FilesystemLoader is a loader that read templates from the filesystem.
Methods
|
__construct(FileLocatorInterface $locator)
Constructor. |
||
| FileStorage|Boolean |
load(TemplateReferenceInterface $template)
Loads a template. |
|
| Boolean |
isFresh(TemplateReferenceInterface $template, integer $time)
Returns true if the template is still fresh. |
Details
at line 33
public
__construct(FileLocatorInterface $locator)
Constructor.
at line 45
public FileStorage|Boolean
load(TemplateReferenceInterface $template)
Loads a template.
at line 64
public Boolean
isFresh(TemplateReferenceInterface $template, integer $time)
Returns true if the template is still fresh.