Example #1
0
 /**
  * {@inheritdoc}
  */
 public function initializeContext(Context $context)
 {
     if (!$context instanceof ApiContextInterface) {
         return;
     }
     $context->setBaseUrl($this->baseUrl);
     $context->setClient($this->client);
     $context->setRequestFactory($this->messageFactory);
     $context->setFileLocator($this->fileLocator);
 }