samedi 26 avril 2014

php - impossible d'utiliser AWS SDK dans mon paquet de compositeur - Stack Overflow


I have a base laravel 4.* install with some private packages. One of those packages is a CMS we use for our projects.


The thing is now, i want to install the AWS SDK into the CMS package. If i add;


    "aws/aws-sdk-php": "2.*"

to my composer.json in my CMS package directory and do a composer update, it installs but i can't use the classes. It says for example;


    "Class 'Aws\S3\S3Client' not found"

But when i add;


    "aws/aws-sdk-php": "2.*"

to my root composer.json file and do a composer update, it works fine?


Tried like composer dump-autoload everywhere.. but that doesn't help.


So my question is; what am i doing wrong? Why can't i use the AWS SDK in my own composer package?



I have a base laravel 4.* install with some private packages. One of those packages is a CMS we use for our projects.


The thing is now, i want to install the AWS SDK into the CMS package. If i add;


    "aws/aws-sdk-php": "2.*"

to my composer.json in my CMS package directory and do a composer update, it installs but i can't use the classes. It says for example;


    "Class 'Aws\S3\S3Client' not found"

But when i add;


    "aws/aws-sdk-php": "2.*"

to my root composer.json file and do a composer update, it works fine?


Tried like composer dump-autoload everywhere.. but that doesn't help.


So my question is; what am i doing wrong? Why can't i use the AWS SDK in my own composer package?


0 commentaires:

Enregistrer un commentaire