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

PHP Fatal error - version 2.0.2 #37

Closed MaiKaY closed 8 years ago

MaiKaY commented 8 years ago

Hi guys, since the release of your version 2.0.2 i am getting the following PHP Fatal error

PHP Fatal error: Uncaught TypeError: Argument 1 passed to AwsModule\Factory\AwsFactory::__invoke() must be an instance of Interop\Container\ContainerInterface, instance of Zend\ServiceManager\ServiceManager given, called in /Applications/MAMP/htdocs/XXXXX/vendor/aws/aws-sdk-php-zf2/src/Factory/AwsFactory.php on line 44 and defined in /Applications/MAMP/htdocs/XXXXX/vendor/aws/aws-sdk-php-zf2/src/Factory/AwsFactory.php:23

How i try to get for example my S3Client:

/**
 * @return \Aws\S3\S3Client
 */
private function getS3Client()
{
    /** @var Sdk $aws */
    $aws = $this->getServiceLocator()->get(Sdk::class);

    return $aws->createS3();
}

Why is such a change not a Breaking Change which ends in a new minor version (2.1.0)?

best regards Maik

cjyclaire commented 8 years ago

Apologies for the version bump, version tag has been fixed, thank you.

MaiKaY commented 8 years ago

Hi @cjyclaire, first of all thank you very much for your fast response! The problem is still existing because the version 2.0.2 is still available at packagist.org. Could you please drop the version?

cheers Maik

cjyclaire commented 8 years ago

Thank you so much for your patience, now fixed!