public function HttpClient::call in HTTP Client Manager 8
Same name and namespace in other branches
- 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
Namespace
Drupal\http_client_managerCode
public function call($commandName, array $params = []) {
return $this
->getClient()
->getCommand($commandName, $params)
->execute();
}