PHP Class eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilder

Inheritance: implements eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
buildMatcher ( string $matcherIdentifier, mixed $matchingConfiguration, SimplifiedRequest $request ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher Builds siteaccess matcher.

Method Details

buildMatcher() public method

In the siteaccess configuration, if the matcher class begins with a "\" (FQ class name), it will be used as is, passing the matching configuration in the constructor. Otherwise, given matching class will be relative to eZ\Publish\Core\MVC\Symfony\SiteAccess namespace.
public buildMatcher ( string $matcherIdentifier, mixed $matchingConfiguration, SimplifiedRequest $request ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher
$matcherIdentifier string "Identifier" of the matcher to build (i.e. its FQ class name).
$matchingConfiguration mixed Configuration to pass to the matcher. Can be anything the matcher supports.
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest The request to match against.
return eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher