HttpKernelExtension

class HttpKernelExtension extends Twig_Extension

Provides integration with the HttpKernel component.

Methods

__construct(FragmentHandler $handler)

Constructor.

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)

Constructor.

Parameters

FragmentHandler $handler A FragmentHandler instance

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}

doc_Symfony
2016-10-28 06:20:47
Comments
Leave a Comment

Please login to continue.