File tree Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Aws \Laravel \AwsServiceProvider ;
4+
5+ return [
6+
7+ /*
8+ |--------------------------------------------------------------------------
9+ | AWS SDK Configuration
10+ |--------------------------------------------------------------------------
11+ |
12+ | The configuration options set in this file will be passed directly to the
13+ | `Aws\Sdk` object, from which all client objects are created. This file
14+ | sets the default minimum configuration used by the service provider even
15+ | if no configuration is set by the user. The full set of possible options
16+ | are documented at:
17+ | http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
18+ |
19+ */
20+ 'region ' => env ('AWS_REGION ' , 'us-east-1 ' ),
21+ 'version ' => 'latest ' ,
22+ 'ua_append ' => [
23+ 'L5MOD/ ' . AwsServiceProvider::VERSION ,
24+ ],
25+ ];
Original file line number Diff line number Diff line change 1010 |--------------------------------------------------------------------------
1111 |
1212 | The configuration options set in this file will be passed directly to the
13- | `Aws\Sdk` object, from which all client objects are created. The minimum
14- | required options are declared here, but the full set of possible options
15- | are documented at:
13+ | `Aws\Sdk` object, from which all client objects are created. This file
14+ | is published to the application config directory for modification by the
15+ | user. The full set of possible options are documented at:
1616 | http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
1717 |
1818 */
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ class AwsServiceProvider extends ServiceProvider
2626 */
2727 public function boot ()
2828 {
29- $ source = dirname (__DIR__ ).'/config/aws.php ' ;
30-
3129 if ($ this ->app instanceof LaravelApplication && $ this ->app ->runningInConsole ()) {
32- $ this ->publishes ([$ source => config_path ('aws.php ' )]);
30+ $ this ->publishes ([
31+ dirname (__DIR__ ).'/config/aws_publish.php ' => config_path ('aws.php ' )
32+ ]);
3333 } elseif ($ this ->app instanceof LumenApplication) {
3434 $ this ->app ->configure ('aws ' );
3535 }
3636
37- $ this ->mergeConfigFrom ($ source , 'aws ' );
37+ $ this ->mergeConfigFrom (dirname ( __DIR__ ). ' /config/aws_default.php ' , 'aws ' );
3838 }
3939
4040 /**
You can’t perform that action at this time.
0 commit comments