misd-service-development / guzzle-bundle

[NOT MAINTAINED] Integrates Guzzle into your Symfony2 application
99 stars 54 forks source link

Passing parameters directly and not in associative array #41

Closed mbedna closed 10 years ago

mbedna commented 10 years ago

In examples when there is a need to pass parameter to method associative array has to be created, for example:

$client = self::getClient('Basic'); $command = $client->getCommand('GetPerson', array('id' => 1));

Is it possilble with misd guzzle bundle to pass parameter directly without creating associative array? Example:

$client = self::getClient('Basic'); $command = $client->getCommand('GetPerson', 1);

thewilkybarkid commented 10 years ago

Looks to be a Guzzle question not a bundle one. Try their mailing list (https://groups.google.com/forum/?fromgroups#!forum/guzzle).

mbedna commented 10 years ago

@thewilkybarkid I got answer on guzzle forum that guzzle will not support passing parameters in other way and than associative array: https://groups.google.com/forum/?fromgroups#!topic/guzzle/ul2Vz1HD_kE Guzzle-bundle is wrapper for guzzle so do you think it will be beneficial to have such functionality built in it?

thewilkybarkid commented 10 years ago

The bundle only integrates Guzzle into your application, it's not going to change its API.