-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from aws/sdkv3
Changes for SDK 3
- Loading branch information
Showing
41 changed files
with
650 additions
and
1,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
before_script: | ||
- sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' | ||
- cp phpunit.xml.dist phpunit.xml | ||
- composer install --dev | ||
script: vendor/bin/phpunit --coverage-text | ||
- 5.6 | ||
|
||
sudo: false | ||
|
||
install: travis_retry composer install --no-interaction --prefer-source | ||
|
||
script: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
<?php | ||
|
||
return array( | ||
return [ | ||
/** | ||
* You can define global configuration settings for the SDK as an array. Typically, you will want to a provide your | ||
* credentials (key and secret key) and the region (e.g. us-west-2) in which you would like to use your services. | ||
* You can also override the setting on a per service basic. | ||
* | ||
* To avoid breaking in your code when updating the SDK, we always recommend you to manually select a version for | ||
* each service instead of relying on the 'latest' keyword | ||
*/ | ||
// 'aws' => array( | ||
// 'key' => 'change_me', | ||
// 'secret' => 'change_me', | ||
// 'region' => 'change_me' | ||
// ) | ||
|
||
/** | ||
* You can alternatively provide a path to an AWS SDK for PHP config file containing your configuration settings. | ||
* Config files can allow you to have finer-grained control over the configuration settings for each service client. | ||
*/ | ||
// 'aws' => 'path/to/your/aws-config.php' | ||
); | ||
// 'aws' => [ | ||
// 'credentials' => [ | ||
// 'key' => 'change_me', | ||
// 'secret' => 'change_me' | ||
// ] | ||
// 'region' => 'change_me', | ||
// 'version' => 'latest', | ||
// 'DynamoDb' => [ | ||
// 'region' => 'another_region', | ||
// 'version' => 'latest' | ||
// ] | ||
// ] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
<?php | ||
|
||
return array( | ||
'service_manager' => array( | ||
'factories' => array( | ||
'Aws' => 'Aws\Factory\AwsFactory', | ||
'Aws\Session\SaveHandler\DynamoDb' => 'Aws\Factory\DynamoDbSessionSaveHandlerFactory' | ||
) | ||
), | ||
use AwsModule\Factory\AwsFactory; | ||
use AwsModule\Factory\CloudFrontLinkViewHelperFactory; | ||
use AwsModule\Factory\DynamoDbSessionSaveHandlerFactory; | ||
use AwsModule\Factory\S3LinkViewHelperFactory; | ||
use AwsModule\Factory\S3RenameUploadFactory; | ||
use AwsModule\Filter\File\S3RenameUpload; | ||
use Aws\Sdk as Aws; | ||
use AwsModule\Session\SaveHandler\DynamoDb as DynamoDbSaveHandler; | ||
use AwsModule\View\Helper\CloudFrontLink; | ||
use AwsModule\View\Helper\S3Link; | ||
|
||
'filters' => array( | ||
'factories' => array( | ||
'Aws\Filter\File\S3RenameUpload' => 'Aws\Factory\S3RenameUploadFactory' | ||
), | ||
'aliases' => array( | ||
's3renameupload' => 'Aws\Filter\File\S3RenameUpload' | ||
) | ||
), | ||
return [ | ||
'service_manager' => [ | ||
'factories' => [ | ||
Aws::class => AwsFactory::class, | ||
DynamoDbSaveHandler::class => DynamoDbSessionSaveHandlerFactory::class | ||
] | ||
], | ||
|
||
'view_helpers' => array( | ||
'factories' => array( | ||
'Aws\View\Helper\S3Link' => 'Aws\Factory\S3LinkViewHelperFactory', | ||
'Aws\View\Helper\CloudFrontLink' => 'Aws\Factory\CloudFrontLinkViewHelperFactory' | ||
), | ||
'filters' => [ | ||
'factories' => [ | ||
S3RenameUpload::class => S3RenameUploadFactory::class | ||
], | ||
'aliases' => [ | ||
's3renameupload' => S3RenameUpload::class | ||
] | ||
], | ||
|
||
'aliases' => array( | ||
'cloudfrontlink' => 'Aws\View\Helper\CloudFrontLink', | ||
's3link' => 'Aws\View\Helper\S3Link' | ||
) | ||
), | ||
); | ||
'view_helpers' => [ | ||
'factories' => [ | ||
S3Link::class => S3LinkViewHelperFactory::class, | ||
CloudFrontLink::class => CloudFrontLinkViewHelperFactory::class | ||
], | ||
|
||
'aliases' => [ | ||
'cloudfrontlink' => CloudFrontLink::class, | ||
's3link' => S3Link::class | ||
] | ||
], | ||
]; |
Oops, something went wrong.