Skip to content

Commit d118c0d

Browse files
committed
patch
2 parents 476d06a + f4d2bef commit d118c0d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/Illuminate/Cache/CacheServiceProvider.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ public function register()
3636
$this->app->singleton('cache.dynamodb.client', function ($app) {
3737
$config = $app['config']->get('cache.stores.dynamodb');
3838

39-
return new DynamoDbClient([
39+
$dynamoConfig = [
4040
'region' => $config['region'],
4141
'version' => 'latest',
4242
'endpoint' => $config['endpoint'] ?? null,
43-
'credentials' => Arr::only(
43+
];
44+
45+
if ($config['key'] && $config['secret']) {
46+
$dynamoConfig['credentials'] = Arr::only(
4447
$config, ['key', 'secret', 'token']
45-
),
46-
]);
48+
);
49+
}
50+
51+
return new DynamoDbClient($dynamoConfig);
4752
});
4853

4954
$this->app->singleton(RateLimiter::class);

src/Illuminate/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
3333
*
3434
* @var string
3535
*/
36-
const VERSION = '8.35.0';
36+
const VERSION = '8.35.1';
3737

3838
/**
3939
* The base path for the Laravel installation.

0 commit comments

Comments
 (0)