LazyLoadingFragmentHandler
class LazyLoadingFragmentHandler extends FragmentHandler
Lazily loads fragment renderers from the dependency injection container.
Methods
__construct(ContainerInterface $container, RequestStack $requestStack, bool $debug = false)
No description
string|null
render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array())
Renders a URI and returns the Response content.
Details
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
protected string|null
deliver(Response $response)
Delivers the Response as a string.
When the Response is a StreamedResponse, the content is streamed immediately instead of being returned.