public function buildMatcher($matchingClass, $matchingConfiguration, SimplifiedRequest $request)
{
if ($matchingClass[0] === '@') {
/** @var $matcher \eZ\Bundle\EzPublishCoreBundle\SiteAccess\Matcher */
$matcher = $this->container->get(substr($matchingClass, 1));
if (!$matcher instanceof Matcher) {
throw new RuntimeException('A service based siteaccess matcher MUST implement ' . __NAMESPACE__ . '\\Matcher interface.');
}
$matcher->setMatchingConfiguration($matchingConfiguration);
$matcher->setRequest($request);
return $matcher;
}
return parent::buildMatcher($matchingClass, $matchingConfiguration, $request);
}