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