ContainerAwareHIncludeFragmentRenderer deprecated
class ContainerAwareHIncludeFragmentRenderer extends HIncludeFragmentRenderer
deprecated
Реализует стратегию рендеринга Hinclude.
Методы
| setFragmentPath(string $path) Устанавливает путь фрагмента, который вызывает обработчик фрагмента. | from RoutableFragmentRenderer | |
| __construct(ContainerInterface $container, UriSigner $signer = null, string $globalDefaultTemplate = null) Конструктор. | ||
| setTemplating(EngineInterface|Twig_Environment|null $templating) Устанавливает движок шаблонов для рендеринга содержимого по умолчанию. | from HIncludeFragmentRenderer | |
| bool | hasTemplating() Проверяет, установлен ли движок шаблонов. | from HIncludeFragmentRenderer |
| Response | render(string|ControllerReference $uri, Request $request, array $options = array()) Рендерит URI и возвращает содержимое ответа. | |
| string | getName() Получает имя стратегии. | from HIncludeFragmentRenderer |
Детали
setFragmentPath(string $path)
Устанавливает путь фрагмента, который вызывает обработчик фрагмента.
Параметры
| string | $path | Путь |
См. также
| FragmentListener |
__construct(ContainerInterface $container, UriSigner $signer = null, string $globalDefaultTemplate = null)
Конструктор.
Параметры
| ContainerInterface | $container | |
| UriSigner | $signer | Экземпляр UriSigner |
| string | $globalDefaultTemplate | Глобальное содержимое по умолчанию (может быть именем шаблона или содержимым) |
setTemplating(EngineInterface|Twig_Environment|null $templating)
Устанавливает движок шаблонов для рендеринга содержимого по умолчанию.
Параметры
| EngineInterface|Twig_Environment|null | $templating | Экземпляр EngineInterface или \Twig_Environment |
Исключения
| InvalidArgumentException |
bool hasTemplating()
Проверяет, установлен ли движок шаблонов.
Возвращаемое значение
| bool | true, если движок шаблонов установлен, иначе false |
Response render(string|ControllerReference $uri, Request $request, array $options = array())
Рендерит URI и возвращает содержимое ответа.
Параметры
| string|ControllerReference | $uri | URI в виде строки или экземпляр ControllerReference |
| Request | $request | Экземпляр Request |
| array | $options | Массив опций |
Возвращаемое значение
| Response | Экземпляр Response |
string getName()
Получает имя стратегии.
Возвращаемое значение
| string | Имя стратегии |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Bundle/FrameworkBundle/Fragment/ContainerAwareHIncludeFragmentRenderer.html