class HttpKernelExtension extends Twig_Extension

Provides integration with the HttpKernel component.

Methods

__construct(FragmentHandler $handler)

Constructor.

getFunctions()

No description

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())

No description

getName()

{@inheritdoc}

Details

at line line 31
__construct(FragmentHandler $handler)

Constructor.

Parameters

FragmentHandler $handler A FragmentHandler instance

at line line 36
getFunctions()

at line line 55
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()

at line line 74
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()

at line line 79
controller($controller, $attributes = array(), $query = array())

Parameters

$controller
$attributes
$query

at line line 87
getName()

{@inheritdoc}