/** * Returns the matcher object. * * @param string $matcherIdentifier The matcher class. * If it begins with a '\' it means it's a FQ class name, otherwise it is relative to * eZ\Publish\Core\MVC\Symfony\View\ContentViewProvider\Configured\Matcher namespace. * * @throws \InvalidArgumentException * * @return \eZ\Publish\Core\MVC\Symfony\View\ContentViewProvider\Configured\Matcher */ protected function getMatcher($matcherIdentifier) { $matcher = parent::getMatcher($matcherIdentifier); if (!$matcher instanceof Matcher) { throw new InvalidArgumentException('Matcher for ContentViewProvider\\Configured must implement eZ\\Publish\\Core\\MVC\\Symfony\\View\\ContentViewProvider\\Configured\\Matcher interface.'); } return $matcher; }