getCommand()
getCommand(string $name, array $args = []) : \GuzzleHttp\Command\CommandInterface
Create a command for an operation name.
Special keys may be set on the command to control how it behaves. Implementations SHOULD be able to utilize the following keys or throw an exception if unable.
Parameters
string | $name | Name of the operation to use in the command |
array | $args | Arguments to pass to the command |
Throws
- \InvalidArgumentException
if no command can be found by name