2amigos / yiiaws

Amazon Web Services SDK PHP 2 Wrapper
21 stars 15 forks source link

unable to perform argument passing functions with custom configuration other than 'default' #6

Closed VoBB-Technologies closed 11 years ago

VoBB-Technologies commented 11 years ago

Hi ,

I was unable to perform argument passing functions eg:s3->listObjects(array('Bucket'=>'xx')) when using custom prefix , other than 'default_settings' in aws-config.php .

I made minor code modification to the a2base,php -> http://pastebin.com/PTRLCHPi

hope this helps !

tonydspaniard commented 11 years ago

@Code-BlUe I have recently fixed the issue. The problem was with the $args at the A2Base, now you can use the default settings as it was. Thanks for your input!

tonydspaniard commented 11 years ago

see commit 610d2bc

VoBB-Technologies commented 11 years ago

@tonydspaniard : great !

it is better if we can use custom prefix in aws-config , as some may have few instance(multiple accounts) for the same service .

if you can implement http://bit.ly/ZpPgtS , that would be a huge advantage . I have few instances (like above) ,so still i'm using my own code modification (as i stated above).

VoBB-Technologies commented 11 years ago

@tonydspaniard FYI:

I use 'default_settings' (aws-config.php) with your modification , still getting "A2S3 and its behaviors do not have a method or closure named "listObjects"".

with above settings , AWS connection initiate correctly with AWS SDK , but initiated connection will not return correctly [A2Base.php->line 87 (http://bit.ly/14bs0EE)], thus the error popups .

In my code i return initiated connection immediately (return $command) , with out passing it to parent (CComponent)

side note : other than above I think the error was with A2Base.php->line 87 (http://bit.ly/14bs0EE) =>not returning/initiating the method and arguments correctly .

tonydspaniard commented 11 years ago

@Code-BlUe A2Base.php->line 87 you are right... fixing it... Thanks Code

Will implement the new configuration settings asap. Please, write an enhancement request.

BTW with default settings I do work on my current project. I wonder why it doesn't for all.

indicalabs commented 11 years ago

Below is the Error in using Composer... Installing dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1


tonydspaniard commented 11 years ago

@Venu85 what do you suggest? Versioning? Should I tag versions? Any advice will be highly appreciated

VoBB-Technologies commented 11 years ago

@tonydspaniard : I didn't try this , but yeah , I think versioning is a must when it comes to composer .

tonydspaniard commented 11 years ago

@VoBB-Technologies I have tagged the branch https://github.com/2amigos/yii-aws/tree/v1.0

You can now reference "2amigos/yii-aws": "v1.0" on your composer file