eZPublishCommunityProject  2013.4
eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilder Class Reference

Siteaccess matcher builder, based on class names. More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilder:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilder:

Public Member Functions

 buildMatcher ($matcherIdentifier, $matchingConfiguration, SimplifiedRequest $request)
 Builds siteaccess matcher. More...

Detailed Description

Siteaccess matcher builder, based on class names.

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\SiteAccess\MatcherBuilder::buildMatcher (   $matchingClass,
SimplifiedRequest  $request 

Builds siteaccess matcher.

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 namespace.

string$matcherIdentifier"Identifier" of the matcher to build (i.e. its FQ class name).
mixed$matchingConfigurationConfiguration to pass to the matcher. Can be anything the matcher supports.
\eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest$requestThe request to match against.

If $matchingClass begins with "@", it will be considered as a service identifier and loaded with the service container.


Implements eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface.

The documentation for this class was generated from the following files: