class FilesystemLoader implements LoaderInterface
FilesystemLoader is a loader that read templates from the filesystem.
| protected | $locator |
| __construct(FileLocatorInterface $locator) | ||
| Storage|bool | load(TemplateReferenceInterface $template) Loads a template. | |
| bool | isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. |
| FileLocatorInterface | $locator |
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.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.html