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

Publish/Core/MVC/Symfony/Matcher/ContentMatcherFactory.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Matcher;
8
9 use eZ\Publish\Core\MVC\Symfony\View\ContentValueView;
10 use eZ\Publish\Core\MVC\Symfony\View\View;
11 use InvalidArgumentException;
12
16 class ContentMatcherFactory extends ContentBasedMatcherFactory
17 {
28 protected function doMatch(MatcherInterface $matcher, View $view)
29 {
30 if (!$view instanceof ContentValueView) {
31 throw new InvalidArgumentException('View must be a ContentValueView instance');
32 }
33
34 return $matcher->match($view);
35 }
36 }
eZ\Publish\Core\MVC\Symfony\Matcher\ContentBasedMatcherFactory
Definition: ContentBasedMatcherFactory.php:16
eZ\Publish\Core\MVC\Symfony\Matcher\ContentMatcherFactory
Definition: Publish/Core/MVC/Symfony/Matcher/ContentMatcherFactory.php:17
eZ\Publish\Core\MVC\Symfony\Matcher\ContentMatcherFactory\doMatch
doMatch(MatcherInterface $matcher, View $view)
Checks if $valueObject matches $matcher rules.
Definition: Publish/Core/MVC/Symfony/Matcher/ContentMatcherFactory.php:28
eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface
Base interface for matchers.
Definition: MatcherInterface.php:15
eZ\Publish\Core\MVC\Symfony\View\ContentValueView
A view that contains a Content.
Definition: ContentValueView.php:13
eZ\Publish\Core\MVC\Symfony\View\View
Main interface for Views of Value objects (content, block...).
Definition: Publish/Core/MVC/Symfony/View/View.php:16
eZ\Publish\Core\MVC\Symfony\Matcher
Definition: AbstractMatcherFactory.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.