Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Publish/Core/MVC/Symfony/SiteAccess/MatcherBuilder.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\SiteAccess;
8
9 use eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest;
10
14 class MatcherBuilder implements MatcherBuilderInterface
15 {
27 public function buildMatcher($matcherIdentifier, $matchingConfiguration, SimplifiedRequest $request)
28 {
29 // If class begins with a '\' it means it's a FQ class name,
30 // otherwise it is relative to this namespace.
31 if ($matcherIdentifier[0] !== '\\') {
32 $matcherIdentifier = __NAMESPACE__ . "\\Matcher\\$matcherIdentifier";
33 }
34
36 $matcher = new $matcherIdentifier($matchingConfiguration);
37 $matcher->setRequest($request);
38
39 return $matcher;
40 }
41 }
eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest
Definition: SimplifiedRequest.php:21
eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilder
Siteaccess matcher builder, based on class names.
Definition: Publish/Core/MVC/Symfony/SiteAccess/MatcherBuilder.php:15
eZ\Publish\Core\MVC\Symfony\SiteAccess
Base struct for a siteaccess representation.
Definition: SiteAccess.php:16
eZ\Publish\Core\MVC\Symfony\SiteAccess\$matcher
$matcher
Definition: SiteAccess.php:37
eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface
Definition: MatcherBuilderInterface.php:12
eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface\buildMatcher
buildMatcher($matcherIdentifier, $matchingConfiguration, SimplifiedRequest $request)
Builds siteaccess matcher.
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.