/**
  * Signs requests before they are sent
  *
  * @param Event $event Event emitted
  */
 public function onRequestBeforeSend(Event $event)
 {
     $creds = $this->credentials instanceof AbstractRefreshableCredentials ? $this->credentials->getCredentials() : $this->credentials;
     if (!$creds instanceof NullCredentials) {
         $this->signature->signRequest($event['request'], $creds);
     }
 }
 /**
  * Signs requests before they are sent
  *
  * @param Event $event Event emitted
  */
 public function onRequestBeforeSend(Event $event)
 {
     $this->signature->signRequest($event['request'], $this->credentials);
 }
Esempio n. 3
0
 /**
  * Signs requests before they are sent
  *
  * @param Event $event Event emitted
  */
 public function onRequestBeforeSend(Event $event)
 {
     if (!$this->credentials instanceof NullCredentials) {
         $this->signature->signRequest($event['request'], $this->credentials);
     }
 }