HttpKernelExtension
class HttpKernelExtension extends AbstractExtension
Provides integration with the HttpKernel component.
Methods
__construct(FragmentHandler $handler) | ||
getFunctions() | ||
string | renderFragment(string|ControllerReference $uri, array $options = array()) Renders a fragment. | |
string | renderFragmentStrategy(string $strategy, string|ControllerReference $uri, array $options = array()) Renders a fragment. | |
controller($controller, $attributes = array(), $query = array()) | ||
getName() {@inheritdoc} |
Details
__construct(FragmentHandler $handler)
Parameters
FragmentHandler | $handler |
getFunctions()
string renderFragment(string|ControllerReference $uri, array $options = array())
Renders a fragment.
Parameters
string|ControllerReference | $uri | A URI as a string or a ControllerReference instance |
array | $options | An array of options |
Return Value
string | The fragment content |
See also
FragmentHandler::render() |
string renderFragmentStrategy(string $strategy, string|ControllerReference $uri, array $options = array())
Renders a fragment.
Parameters
string | $strategy | A strategy name |
string|ControllerReference | $uri | A URI as a string or a ControllerReference instance |
array | $options | An array of options |
Return Value
string | The fragment content |
See also
FragmentHandler::render() |
controller($controller, $attributes = array(), $query = array())
Parameters
$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