示例#1
0
 /**
  * {@inheritdoc}
  */
 public function initializeContext(Context $context)
 {
     if (!$context instanceof ApiContextInterface) {
         return;
     }
     $context->setClient($this->client);
     $context->setRequestFactory($this->messageFactory);
     $context->setBaseUrl($this->baseUrl);
 }
 /**
  * Initialize the context
  *
  * @param Context $context [description]
  */
 public function initializeContext(Context $context)
 {
     $context->setBaseUrl($this->baseUrl);
     $context->setParameters($this->parameters);
 }