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()

Magic method implementation for commands execution.

Parameters

string $name: The Guzzle command name.

array $arguments: The Guzzle command parameters array.

Return value

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

See also

HttpClientInterface::call

File

src/HttpClient.php, line 128

Class

HttpClient

Namespace

Drupal\http_client_manager

Code

public function __call($name, array $arguments = []) {
  $params = !empty($arguments[0]) ? $arguments[0] : [];
  return $this
    ->call($name, $params);
}