class LazyLoadingFragmentHandler extends FragmentHandler
Lazily loads fragment renderers from the dependency injection container.
Methods
__construct(ContainerInterface $container, RequestStack $requestStack, bool $debug = false) Constructor. | ||
addRenderer(FragmentRendererInterface $renderer) Adds a renderer. | from FragmentHandler | |
string|null | render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content. | |
addRendererService(string $name, string $renderer) Adds a service as a fragment renderer. |
Details
__construct(ContainerInterface $container, RequestStack $requestStack, 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.
Available options:
- ignore_errors: true to return an empty string in case of an error
addRendererService(string $name, string $renderer)
Adds a service as a fragment renderer.
Please login to continue.