/**
* Matches a \Neos\Flow\Mvc\RequestInterface against its set controller object name pattern rules
*
* @param RequestInterface $request The request that should be matched
* @return boolean TRUE if the pattern matched, FALSE otherwise
* @throws InvalidRequestPatternException
*/
public function matchRequest(RequestInterface $request)
{
if (!isset($this->options['controllerObjectNamePattern'])) {
throw new InvalidRequestPatternException('Missing option "controllerObjectNamePattern" in the ControllerObjectName request pattern configuration', 1446224501);
}
return (bool) preg_match('/^' . str_replace('\\', '\\\\', $this->options['controllerObjectNamePattern']) . '$/', $request->getControllerObjectName());
}