Fragment\EsiFragmentRenderer (Component\HttpKernel)
Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer
class EsiFragmentRenderer extends AbstractSurrogateFragmentRenderer
Implements the ESI rendering strategy.
Methods
setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. | from RoutableFragmentRenderer | |
__construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) Constructor. | from AbstractSurrogateFragmentRenderer | |
Response | render(string|ControllerReference $uri, Request $request, array $options = array()) Renders a URI and returns the Response content. | from AbstractSurrogateFragmentRenderer |
string | getName() Gets the name of the strategy. |
Details
public setFragmentPath(string $path)
Sets the fragment path that triggers the fragment listener.
public __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null)
Constructor.
The "fallback" strategy when surrogate is not available should always be an instance of InlineFragmentRenderer.
public Response render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.
public string getName()
Gets the name of the strategy.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/Fragment/EsiFragmentRenderer.html