eZ\Publish\Core\MVC\Symfony\Matcher\ContentBasedMatcherFactory::getMatcher PHP Method

getMatcher() protected method

protected getMatcher ( $matcherIdentifier )
    protected function getMatcher($matcherIdentifier)
    {
        @trigger_error("ContentBasedMatcherFactory 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);
        $matcher = parent::getMatcher($matcherIdentifier);
        if (!$matcher instanceof ContentBasedMatcherInterface) {
            throw new InvalidArgumentException('Content based Matcher must implement eZ\\Publish\\Core\\MVC\\Symfony\\Matcher\\ContentBased\\MatcherInterface.');
        }
        return $matcher;
    }
ContentBasedMatcherFactory