EsiFragmentRenderer
class EsiFragmentRenderer extends AbstractSurrogateFragmentRenderer
Implements the ESI rendering strategy.
Methods
setFragmentPath(string $path)
Sets the fragment path that triggers the fragment listener.
string
generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true)
Generates a fragment URI for a given controller.
__construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null)
The "fallback" strategy when surrogate is not available should always be an instance of InlineFragmentRenderer.
render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.
string
getName()
Gets the name of the strategy.
Details
protected string
generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true)
Generates a fragment URI for a given controller.
__construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null)
The "fallback" strategy when surrogate is not available should always be an instance of InlineFragmentRenderer.
Response
render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.