Documentation

SsiFragmentRenderer extends AbstractSurrogateFragmentRenderer
in package

Implements the SSI rendering strategy.

Tags
author

Sebastian Krebs krebs.seb@gmail.com

Table of Contents

Properties

$inlineStrategy  : mixed
$signer  : mixed
$surrogate  : mixed

Methods

__construct()  : mixed
The "fallback" strategy when surrogate is not available should always be an instance of InlineFragmentRenderer.
getName()  : string
{@inheritdoc}
render()  : Response
{@inheritdoc}
setFragmentPath()  : mixed
Sets the fragment path that triggers the fragment listener.
generateFragmentUri()  : string
Generates a fragment URI for a given controller.
containsNonScalars()  : bool
generateSignedFragmentUri()  : string

Properties

Methods

render()

{@inheritdoc}

public render(string|ControllerReference $uri, Request $request[, array<string|int, mixed> $options = [] ]) : Response

Note that if the current Request has no surrogate capability, this method falls back to use the inline rendering strategy.

Additional available options:

  • alt: an alternative URI to render in case of an error
  • comment: a comment to add when returning the surrogate tag

Note, that not all surrogate strategies support all options. For now 'alt' and 'comment' are only supported by ESI.

Parameters
$uri : string|ControllerReference
$request : Request
$options : array<string|int, mixed> = []
Tags
see
SurrogateInterface
Return values
Response

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

Return values
string

containsNonScalars()

private containsNonScalars(array<string|int, mixed> $values) : bool
Parameters
$values : array<string|int, mixed>
Return values
bool

        
On this page

Search results