class FilesystemLoader extends Loader
FilesystemLoader is a loader that read templates from the filesystem.
setLogger(LoggerInterface $logger) Sets the debug logger to use for this loader. | from Loader | |
__construct(string|string[] $templatePathPatterns) | ||
Storage|bool | load(TemplateReferenceInterface $template) Loads a template. | |
bool | isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. |
Sets the debug logger to use for this loader.
LoggerInterface | $logger |
string|string[] | $templatePathPatterns | An array of path patterns to look for templates |
Loads a template.
TemplateReferenceInterface | $template |
Storage|bool | false if the template cannot be loaded, a Storage instance otherwise |
Returns true if the template is still fresh.
TemplateReferenceInterface | $template | A template |
int | $time | The last modification time of the cached template (timestamp) |
bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Templating/Loader/FilesystemLoader.html