/**
  * {@inheritdoc}
  */
 protected function doSendInternalRequests(array $internalRequests)
 {
     foreach ($internalRequests as &$internalRequest) {
         $internalRequest = $this->authentication->authenticate($internalRequest);
     }
     return parent::doSendInternalRequests($internalRequests);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function authenticate(RequestInterface $request)
 {
     if (!call_user_func($this->matcher, $request)) {
         return $request;
     }
     return $this->authentication->authenticate($request);
 }