eZ\Publish\Core\MVC\Symfony\Matcher\LocationMatcherFactory::doMatch PHP Method

doMatch() protected method

Checks if $valueObject matches $matcher rules.
protected doMatch ( eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher, eZ\Publish\Core\MVC\Symfony\View\View $view ) : boolean
$matcher eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface
$view eZ\Publish\Core\MVC\Symfony\View\View
return boolean
    protected function doMatch(MatcherInterface $matcher, View $view)
    {
        @trigger_error("LocationMatcherFactory is deprecated, and will be removed in ezpublish-kernel 6.1.\n" . 'Use the ServiceAwareMatcherFactory with the relative namespace as a constructor argument.', E_USER_DEPRECATED);
        if (!$view instanceof LocationValueView) {
            throw new InvalidArgumentException('Value object must be a valid Location instance');
        }
        return $matcher->matchLocation($view);
    }
LocationMatcherFactory