Class

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

abstract class Map implements VersatileMatcher

Methods

__construct(array $map)

Constructor.

array __sleep()

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

setRequest(SimplifiedRequest $request)

Injects the request object to match against.

SimplifiedRequest getRequest()

Returns the SimplifiedRequest object corresponding to the reverse match.

setMapKey(string $key)

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

string getMapKey()

string|false match()

Returns matching Siteaccess.

Matcher|Map|null reverseMatch(string $siteAccessName)

Details

at line 47
public __construct(array $map)

Constructor.

Parameters

array $map Map used for matching.

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 67
public setRequest(SimplifiedRequest $request)

Injects the request object to match against.

Parameters

SimplifiedRequest $request

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

at line 82
public setMapKey(string $key)

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

Parameters

string $key

at line 90
public string getMapKey()

Return Value

string

at line 100
public string|false match()

Returns matching Siteaccess.

Return Value

string|false Siteaccess matched or false.

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

Parameters

string $siteAccessName

Return Value

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