public matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean | ||
$request | Neos\Flow\Mvc\RequestInterface | The request that should be matched |
return | boolean | TRUE if the pattern matched, FALSE otherwise |
public function matchRequest(RequestInterface $request);
/** * Tries to match the given request against this filter and calls the set security interceptor on success. * * @param RequestInterface $request The request to be matched * @return boolean Returns TRUE if the filter matched, FALSE otherwise */ public function filterRequest(RequestInterface $request) { if ($this->pattern->matchRequest($request)) { $this->securityInterceptor->invoke(); return true; } return false; }