예제 #1
0
파일: Matching.php 프로젝트: xabbuh/message
 /**
  * {@inheritdoc}
  */
 public function authenticate(RequestInterface $request)
 {
     if (!call_user_func($this->matcher, $request)) {
         return $request;
     }
     return $this->authentication->authenticate($request);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function authenticate(RequestInterface $request)
 {
     if ($this->matcher->matches($request)) {
         return $this->authentication->authenticate($request);
     }
     return $request;
 }