Class

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map\URI

class URI extends Map implements URILexer

Methods

__construct(array $map)

Constructor.

from Map
array __sleep()

Do not serialize the Siteaccess configuration in order to reduce ESI request URL size.

from Map
setRequest(SimplifiedRequest $request)

Injects the request object to match against.

SimplifiedRequest getRequest()

Returns the SimplifiedRequest object corresponding to the reverse match.

from Map
setMapKey(string $key)

Injects the key that will be used for matching against the map configuration.

from Map
string getMapKey()

from Map
string|false match()

Returns matching Siteaccess.

from Map
Matcher|Map|null reverseMatch(string $siteAccessName)

getName()

string analyseURI(string $uri)

Fixes up $uri to remove the siteaccess part, if needed.

string analyseLink(string $linkUri)

Analyses $linkUri when generating a link to a route, in order to have the siteaccess part back in the URI.

Details

in Map at line 47
public __construct(array $map)

Constructor.

Parameters

array $map Map used for matching.

in Map at line 59
public array __sleep()

Do not serialize the Siteaccess configuration in order to reduce ESI request URL size.

Return Value

array

See also

https://jira.ez.no/browse/EZP-23168

at line 22
public setRequest(SimplifiedRequest $request)

Injects the request object to match against.

Parameters

SimplifiedRequest $request

in Map at line 72
public SimplifiedRequest getRequest()

Returns the SimplifiedRequest object corresponding to the reverse match.

This request object can then be used to build a link to the "reverse matched" SiteAccess.

Return Value

SimplifiedRequest

in Map at line 82
public setMapKey(string $key)

Injects the key that will be used for matching against the map configuration.

Parameters

string $key

in Map at line 90
public string getMapKey()

Return Value

string

in Map at line 100
public string|false match()

Returns matching Siteaccess.

Return Value

string|false Siteaccess matched or false.

at line 80
public Matcher|Map|null reverseMatch(string $siteAccessName)

Parameters

string $siteAccessName

Return Value

Matcher|Map|null Typically the current matcher, with updated request.

at line 32
public getName()

at line 44
public string analyseURI(string $uri)

Fixes up $uri to remove the siteaccess part, if needed.

Parameters

string $uri The original URI

Return Value

string The modified URI

Analyses $linkUri when generating a link to a route, in order to have the siteaccess part back in the URI.

Parameters

string $linkUri

Return Value

string The modified link URI