class AbstractSurrogateFragmentRenderer extends RoutableFragmentRenderer
Implements Surrogate rendering strategy.
setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. | from RoutableFragmentRenderer | |
__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. |
Sets the fragment path that triggers the fragment listener.
string | $path | The path |
FragmentListener |
The "fallback" strategy when surrogate is not available should always be an instance of InlineFragmentRenderer.
SurrogateInterface | $surrogate | An Surrogate instance |
FragmentRendererInterface | $inlineStrategy | The inline strategy to use when the surrogate is not supported |
UriSigner | $signer |
Renders a URI and returns the Response content.
string|ControllerReference | $uri | A URI as a string or a ControllerReference instance |
Request | $request | A Request instance |
array | $options | An array of options |
Response | A Response instance |
Symfony\Component\HttpKernel\HttpCache\SurrogateInterface |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.html