Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 30, 2021
2 parents 476d06a + f4d2bef commit d118c0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/Illuminate/Cache/CacheServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,19 @@ public function register()
$this->app->singleton('cache.dynamodb.client', function ($app) {
$config = $app['config']->get('cache.stores.dynamodb');

return new DynamoDbClient([
$dynamoConfig = [
'region' => $config['region'],
'version' => 'latest',
'endpoint' => $config['endpoint'] ?? null,
'credentials' => Arr::only(
];

if ($config['key'] && $config['secret']) {
$dynamoConfig['credentials'] = Arr::only(
$config, ['key', 'secret', 'token']
),
]);
);
}

return new DynamoDbClient($dynamoConfig);
});

$this->app->singleton(RateLimiter::class);
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
*
* @var string
*/
const VERSION = '8.35.0';
const VERSION = '8.35.1';

/**
* The base path for the Laravel installation.
Expand Down

0 comments on commit d118c0d

Please sign in to comment.