Example #1
0
 public function setDescription(ServiceDescriptionInterface $service)
 {
     $this->serviceDescription = $service;
     if ($this->getCommandFactory() && $this->getCommandFactory() instanceof CompositeFactory) {
         $this->commandFactory->add(new Command\Factory\ServiceDescriptionFactory($service));
     }
     // If a baseUrl was set on the description, then update the client
     if ($baseUrl = $service->getBaseUrl()) {
         $this->setBaseUrl($baseUrl);
     }
     return $this;
 }