FilesystemLoader
class FilesystemLoader implements LoaderInterface
FilesystemLoader — это загрузчик, который считывает шаблоны из файловой системы.
Свойства
| protected | $locator |
Методы
| __construct(FileLocatorInterface $locator) | ||
| Storage|bool | load(TemplateReferenceInterface $template) Загружает шаблон. | |
| bool | isFresh(TemplateReferenceInterface $template, int $time) Возвращает true, если шаблон всё ещё актуальный. |
Подробности
__construct(FileLocatorInterface $locator)
Параметры
| FileLocatorInterface | $locator |
Storage|bool load(TemplateReferenceInterface $template)
Загружает шаблон.
Параметры
| TemplateReferenceInterface | $template |
Возвращаемое значение
| Storage|bool | false, если шаблон не может быть загружен, в противном случае экземпляр Storage |
bool isFresh(TemplateReferenceInterface $template, int $time)
Возвращает true, если шаблон всё ещё актуальный.
Параметры
| TemplateReferenceInterface | $template | Шаблон |
| int | $time | Время последней модификации кэшированного шаблона (отметка времени) |
Возвращаемое значение
| bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.html