Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with namespaces #10

Closed
damian-lb opened this issue Jul 21, 2016 · 2 comments
Closed

Issue with namespaces #10

damian-lb opened this issue Jul 21, 2016 · 2 comments

Comments

@damian-lb
Copy link

Hi

As far as I know, CakePHP 2 does not support namespaces. However, this plugin uses them. I have followed the installation instructions, however, I am unable to use the SQS.SimpleQueue class due to a missing namespace.

I receive the following error when trying to execute ClassRegistry::init('SQS.SimpleQueue')->send('xxx', array('xxx' => 'xxx')); from any controller:

Class 'Aws\Common\Client\AbstractClient' not found

Seeing that this plugin was developed for CakePHP 2.x, I assume I have done something incorrectly in the installation process. Please advise.

@ryuzee
Copy link

ryuzee commented Jul 21, 2016

@damian-lb This error message shows that your application could not find a class module included in aws-sdk-php. Please install aws-sdk-php v2.

@damian-lb
Copy link
Author

Thanks @ryuzee. My mistake was that I did not install CakePHP from composer. I manually edited my boostrap file to include the autoload.php file in the root vendors directory and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants