-
Notifications
You must be signed in to change notification settings - Fork 248
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 #18 from aws/refactor-config
Refactoring config to support package-level configuration. Fixes #17.
- Loading branch information
Showing
13 changed files
with
310 additions
and
166 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,4 +1,3 @@ | ||
composer.lock | ||
composer.phar | ||
phpunit.xml | ||
vendor |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="./tests/bootstrap.php" | ||
colors="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false"> | ||
|
||
<testsuites> | ||
<testsuite name="AwsServiceProvider Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="false"> | ||
<directory suffix=".php">src</directory> | ||
<exclude> | ||
<directory suffix=".php">vendor</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
/** | ||
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
return array( | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Your AWS Credentials | ||
|-------------------------------------------------------------------------- | ||
| | ||
| In order to communicate with an AWS service, you must provide your AWS | ||
| credentials including your AWS Access Key ID and your AWS Secret Key. You | ||
| can obtain these keys by logging into your AWS account and visiting | ||
| https://console.aws.amazon.com/iam/home?#security_credential. | ||
| | ||
| To use credentials from your environment or to use IAM Instance Profile | ||
| credentials, please remove these config settings from your config. For | ||
| more information see http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/configuration.html | ||
| | ||
*/ | ||
'key' => 'YOUR_AWS_ACCESS_KEY_ID', | ||
'secret' => 'YOUR_AWS_SECRET_KEY', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| AWS Region | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Many AWS services are available in multiple regions. You should specify | ||
| the AWS region you would like to use, but please remember that not every | ||
| service is available in every region. | ||
| | ||
| These are the regions: us-east-1, us-west-1, us-west-2, us-gov-west-1 | ||
| eu-west-1, sa-east-1, ap-northeast-1, ap-southeast-1, ap-southeast-2 | ||
| | ||
*/ | ||
'region' => 'us-east-1', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| AWS Config File Location | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Instead of specifying your credentials and region here, you can specify | ||
| the location of an AWS SDK for PHP config file to use. These files provide | ||
| more granular control over what credentials and regions you are using for | ||
| each service. If you specify a filepath for this configuration setting, | ||
| the others in this file will be ignored. See the SDK user guide for more | ||
| information: http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/configuration.html#using-a-custom-configuration-file | ||
| | ||
*/ | ||
'config_file' => null, | ||
|
||
); |
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
Oops, something went wrong.