InlineFragmentRenderer
extends RoutableFragmentRenderer
in package
Implements the inline rendering strategy where the Request is rendered by the current HTTP kernel.
Tags
Table of Contents
- $dispatcher : mixed
- $kernel : mixed
- __construct() : mixed
- getName() : mixed
- {@inheritdoc}
- render() : mixed
- {@inheritdoc}
- setFragmentPath() : mixed
- Sets the fragment path that triggers the fragment listener.
- createSubRequest() : mixed
- generateFragmentUri() : string
- Generates a fragment URI for a given controller.
Properties
$dispatcher
private
mixed
$dispatcher
$kernel
private
mixed
$kernel
Methods
__construct()
public
__construct(HttpKernelInterface $kernel[, EventDispatcherInterface|null $dispatcher = null ]) : mixed
Parameters
- $kernel : HttpKernelInterface
- $dispatcher : EventDispatcherInterface|null = null
Return values
mixed —getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —render()
{@inheritdoc}
public
render(mixed $uri, Request $request[, array<string|int, mixed> $options = [] ]) : mixed
Additional available options:
- alt: an alternative URI to render in case of an error
Parameters
- $uri : mixed
- $request : Request
- $options : array<string|int, mixed> = []
Return values
mixed —setFragmentPath()
Sets the fragment path that triggers the fragment listener.
public
setFragmentPath(string $path) : mixed
Parameters
- $path : string
Tags
Return values
mixed —createSubRequest()
protected
createSubRequest(string $uri, Request $request) : mixed
Parameters
- $uri : string
- $request : Request
Return values
mixed —generateFragmentUri()
Generates a fragment URI for a given controller.
protected
generateFragmentUri(ControllerReference $reference, Request $request[, bool $absolute = false ][, bool $strict = true ]) : string
Parameters
- $reference : ControllerReference
- $request : Request
- $absolute : bool = false
-
Whether to generate an absolute URL or not
- $strict : bool = true
-
Whether to allow non-scalar attributes or not