Class

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex\Host

class Host extends Regex implements Matcher

Methods

__construct(array $siteAccessesConfiguration)

Constructor.

__sleep()

from Regex
string|false match()

Returns matched Siteaccess or false if no siteaccess could be matched.

from Regex
setRequest(SimplifiedRequest $request)

Injects the request object to match against.

setMatchElement(string $element)

Injects element to match against with the regexp.

from Regex
string getName()

Returns the matcher's name.

Details

at line 25
public __construct(array $siteAccessesConfiguration)

Constructor.

Parameters

array $siteAccessesConfiguration SiteAccesses configuration.

in Regex at line 59
public __sleep()

in Regex at line 64
public string|false match()

Returns matched Siteaccess or false if no siteaccess could be matched.

Return Value

string|false

at line 43
public setRequest(SimplifiedRequest $request)

Injects the request object to match against.

Parameters

SimplifiedRequest $request

in Regex at line 106
public setMatchElement(string $element)

Injects element to match against with the regexp.

Parameters

string $element

at line 33
public string getName()

Returns the matcher's name.

This information will be stored in the SiteAccess object itself to quickly be able to identify the matcher type.

Return Value

string