You are here

public function HttpClient::call in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 src/HttpClient.php \Drupal\http_client_manager\HttpClient::call()

Execute command call.

Parameters

string $commandName: The Guzzle command name.

array $params: The Guzzle command parameters array.

Return value

\Guzzle\Service\Resource\Model|array The Guzzle Command execution result.

Overrides HttpClientInterface::call

1 call to HttpClient::call()
HttpClient::__call in src/HttpClient.php
Magic method implementation for commands execution.

File

src/HttpClient.php, line 111

Class

HttpClient

Namespace

Drupal\http_client_manager

Code

public function call($commandName, array $params = []) {
  return $this
    ->getClient()
    ->getCommand($commandName, $params)
    ->execute();
}