Spec-Zone.ru › Symfony 3.1

HttpKernelExtension

class HttpKernelExtension extends Twig_Extension

Обеспечивает интеграцию с компонентом HttpKernel.

Методы

__construct(FragmentHandler $handler)

Конструктор.

getFunctions()
string renderFragment(string|ControllerReference $uri, array $options = array())

Отображает фрагмент.

string renderFragmentStrategy(string $strategy, string|ControllerReference $uri, array $options = array())

Отображает фрагмент.

controller($controller, $attributes = array(), $query = array())
getName()

{@inheritdoc}

Детали

__construct(FragmentHandler $handler)

Конструктор.

Параметры

FragmentHandler $handler Экземпляр FragmentHandler

getFunctions()

string renderFragment(string|ControllerReference $uri, array $options = array())

Отображает фрагмент.

Параметры

string|ControllerReference $uri URI в виде строки или экземпляр ControllerReference
array $options Массив опций

Возвращаемое значение

string Содержимое фрагмента

См. также

FragmentHandler::render()

string renderFragmentStrategy(string $strategy, string|ControllerReference $uri, array $options = array())

Отображает фрагмент.

Параметры

string $strategy Имя стратегии
string|ControllerReference $uri URI в виде строки или экземпляр ControllerReference
array $options Массив опций

Возвращаемое значение

string Содержимое фрагмента

См. также

FragmentHandler::render()

controller($controller, $attributes = array(), $query = array())

Параметры

$controller
$attributes
$query

getName()

{@inheritdoc}

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Bridge/Twig/Extension/HttpKernelExtension.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API