class FragmentHandler
Renders a URI that represents a resource fragment.
This class handles the rendering of resource fragments that are included into a main resource. The handling of the rendering is managed by specialized renderers.
This listener works in 2 modes:
__construct(RequestStack $requestStack = null, FragmentRendererInterface[] $renderers = array(), bool $debug = false) Constructor. | ||
addRenderer(FragmentRendererInterface $renderer) Adds a renderer. | ||
setRequest(Request $request = null) Sets the current Request. | ||
string|null | render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content. |
Constructor.
RequestStack will become required in 3.0.
Adds a renderer.
Sets the current Request.
This method was used to synchronize the Request, but as the HttpKernel is doing that automatically now, you should never call it directly. It is kept public for BC with the 2.3 version.
Renders a URI and returns the Response content.
Available options:
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/HttpKernel/Fragment/FragmentHandler.html