LoaderInterface
interface LoaderInterface
LoaderInterface — это интерфейс, который должны реализовывать все загрузчики.
Методы
| Storage|bool | load(TemplateReferenceInterface $template) Загружает шаблон. | |
| bool | isFresh(TemplateReferenceInterface $template, int $time) Возвращает true, если шаблон всё ещё актуальный. |
Подробности
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.1/Symfony/Component/Templating/Loader/LoaderInterface.html