Skip to content

Commit a5b543b

Browse files
committed
removing credentials from default config, restoring serviceprovider
1 parent 16398c7 commit a5b543b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

config/aws.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
| http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
1717
|
1818
*/
19-
'credentials' => [
20-
'key' => env('AWS_ACCESS_KEY_ID'),
21-
'secret' => env('AWS_SECRET_ACCESS_KEY'),
22-
],
19+
2320
'region' => env('AWS_REGION', 'us-east-1'),
2421
'version' => 'latest',
2522
'ua_append' => [

src/AwsServiceProvider.php

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function register()
4242
{
4343
$this->app->singleton('aws', function ($app) {
4444
$config = $app['config']->get('aws');
45-
if (is_null($app['config']->get('aws')['credentials']['key']) && is_null($app['config']->get('aws')['credentials']['secret'])) {
46-
unset($config['credentials']);
47-
}
4845
return new Sdk($config);
4946
});
5047

0 commit comments

Comments
 (0)