SsiFragmentRenderer

class SsiFragmentRenderer extends AbstractSurrogateFragmentRenderer

Implements the SSI 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

setFragmentPath(string $path)

Sets the fragment path that triggers the fragment listener.

Parameters

string $path The path

See also

FragmentListener

__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.

Parameters

SurrogateInterface $surrogate An Surrogate instance
FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported
UriSigner $signer

Response render(string|ControllerReference $uri, Request $request, array $options = array())

Renders a URI and returns the Response content.

Parameters

string|ControllerReference $uri A URI as a string or a ControllerReference instance
Request $request A Request instance
array $options An array of options

Return Value

Response A Response instance

See also

Symfony\Component\HttpKernel\HttpCache\SurrogateInterface

string getName()

Gets the name of the strategy.

Return Value

string The strategy name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Fragment/SsiFragmentRenderer.html