/** * get all actions * * @param ClientCommand $command * * @return Response|CommandResponse|DecryptedCommandResponse|StatusResponse */ public function send(ClientCommand $command) { $request = $this->client->createRequest($command->method(), $this->client->getBaseUrl() . $command->uri($this->cryptographyEngine), $this->headers($command->apiVersion(), $command->format(), $command->headers()), $command->body($this->cryptographyEngine), $this->config->getHttpClientConfig()); try { $response = $request->send(); } catch (ClientErrorResponseException $exception) { $response = $exception->getResponse(); } catch (ServerErrorResponseException $exception) { $response = $exception->getResponse(); } return $command->response($response, $this->cryptographyEngine); }
/** * Get application base URL * * @return string Your application base url */ protected function getBaseUrl() { $this->client->getBaseUrl(); }
/** * {@inheritDoc} */ public function getBaseUrl() { return $this->client->getBaseUrl(); }