Extension\HttpKernelExtension (Bridge\Twig)
Symfony\Bridge\Twig\Extension\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
public __construct(FragmentHandler $handler)
Constructor.
public getFunctions()
public string renderFragment(string|ControllerReference $uri, array $options = array())
Renders a fragment.
public string renderFragmentStrategy(string $strategy, string|ControllerReference $uri, array $options = array())
Renders a fragment.
public controller($controller, $attributes = array(), $query = array())
public getName()
{@inheritdoc}
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bridge/Twig/Extension/HttpKernelExtension.html