W3cubDocs

/Symfony 4.1

HttpKernelRuntime

class HttpKernelRuntime

Provides integration with the HttpKernel component.

Methods

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

Renders a fragment.

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

Renders a fragment.

Details

__construct(FragmentHandler $handler)

Parameters

FragmentHandler $handler

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Twig/Extension/HttpKernelRuntime.html