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

Lines changed: 1 addition & 4 deletions
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

Lines changed: 0 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy