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 | Экземпляр FileLocatorInterface |
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.2/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.html