/** * {@inheritdoc} */ public function authenticate(RequestInterface $request) { if (!call_user_func($this->matcher, $request)) { return $request; } return $this->authentication->authenticate($request); }
/** * {@inheritdoc} */ public function authenticate(RequestInterface $request) { if ($this->matcher->matches($request)) { return $this->authentication->authenticate($request); } return $request; }