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.
__construct(RequestStack $requestStack, array $renderers = array(), bool $debug = false) Constructor. | ||
addRenderer(FragmentRendererInterface $renderer) Adds a renderer. | ||
string|null | render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content. |
Constructor.
Adds a renderer.
Renders a URI and returns the Response content.
Available options:
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/Fragment/FragmentHandler.html