mgufrone / cpanel-php

CPanel/WHM API for PHP
MIT License
158 stars 91 forks source link

[Bugfix] Wrong passing params when using magic __call #9

Closed danielmanchev closed 8 years ago

danielmanchev commented 8 years ago

When you call an api method directly (like createacct) you have to pass an associative array with (keys and values). But the magic __call method convert them to multiple argument array without the keys and it's impossible to use them (the only way is to use the shortcut methods, but they are not completed). I changed the passing arguments to the Guzzle request and edit the shortcut methods to pass single-segment array with associative array of params.