/** * {@inheritdoc} */ public function handleRequest(RequestInterface $request, callable $next, callable $first) { if ($this->requestMatcher->matches($request)) { return $this->delegatedPlugin->handleRequest($request, $next, $first); } return $next($request); }
/** * {@inheritdoc} */ public function authenticate(RequestInterface $request) { if ($this->requestMatcher->matches($request)) { return $this->authentication->authenticate($request); } return $request; }