PHP Interface eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessRouterInterface

Show file Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Public Methods

Method Description
match ( SimplifiedRequest $request ) : SiteAccess Performs SiteAccess matching given the $request.
matchByName ( string $siteAccessName ) : SiteAccess Matches a SiteAccess by name.

Method Details

match() public method

Performs SiteAccess matching given the $request.
public match ( SimplifiedRequest $request ) : SiteAccess
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest
return eZ\Publish\Core\MVC\Symfony\SiteAccess

matchByName() public method

Returns corresponding SiteAccess object, according to configuration, with corresponding matcher. If no matcher can be found (e.g. non versatile), matcher property will be "default".
public matchByName ( string $siteAccessName ) : SiteAccess
$siteAccessName string
return eZ\Publish\Core\MVC\Symfony\SiteAccess