aws / aws-sdk-php-zf2

ZF2 module for using the AWS SDK for PHP to interact with AWS services like S3, DynamoDB, SQS, EC2, etc.
http://aws.amazon.com/sdkforphp/
Apache License 2.0
103 stars 63 forks source link

ServiceNotCreatedException #33

Closed vimalmishra09 closed 8 years ago

vimalmishra09 commented 8 years ago

$filter = $this->getServiceLocator()->get('FilterManager')->get('S3RenameUpload');

An exception was raised while creating "S3RenameUpload"; no instance returned

Can some please help?

jeskew commented 8 years ago

Make sure you have added an appropriately configured the module. If no configuration is present when you try to load the S3RenameUpload filter, then the constructor will through an InvalidArgumentException and no instance will be returned. Zf2 catches this exception and returns a Zend\ServiceManager\Exception\ServiceNotCreatedException.