HttpKernelExtension
class HttpKernelExtension extends AbstractExtension
Предоставляет интеграцию с компонентом 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 |
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/2.8/Symfony/Bridge/Twig/Extension/HttpKernelExtension.html