Exemple #1
0
 public function onBeforeSend(Event $event)
 {
     $url = $event['request']->getUrl(true);
     if ($this->token instanceof GuestSessionToken) {
         $url->getQuery()->set('guest_session_id', $this->token->getToken());
     } else {
         $url->getQuery()->set('session_id', $this->token->getToken());
     }
     $event['request']->setUrl($url);
 }
 public function onBeforeSend(RequestEvent $event)
 {
     $event->getRequest()->getParameters()->set('api_key', $this->token->getToken());
 }
Exemple #3
0
 public function onBeforeSend(Event $event)
 {
     $url = $event['request']->getUrl(true);
     $url->getQuery()->set('api_key', $this->token->getToken());
     $event['request']->setUrl($url);
 }