FilesystemLoader
class FilesystemLoader implements LoaderInterface
FilesystemLoader — это загрузчик, который считывает шаблоны из файловой системы.
Методы
| __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.
http://api.symfony.com/3.4/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.html