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 10
10
|--------------------------------------------------------------------------
11
11
|
12
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. 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:
16
16
| http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
17
17
|
18
18
*/
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ class AwsServiceProvider extends ServiceProvider
26
26
*/
27
27
public function boot ()
28
28
{
29
- $ source = dirname (__DIR__ ).'/config/aws.php ' ;
30
-
31
29
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
+ ]);
33
33
} elseif ($ this ->app instanceof LumenApplication) {
34
34
$ this ->app ->configure ('aws ' );
35
35
}
36
36
37
- $ this ->mergeConfigFrom ($ source , 'aws ' );
37
+ $ this ->mergeConfigFrom (dirname ( __DIR__ ). ' /config/aws_default.php ' , 'aws ' );
38
38
}
39
39
40
40
/**
You can’t perform that action at this time.
0 commit comments