Skip to content

Commit

Permalink
Merge pull request #28600 from hmazter/configure-endpoint-for-dynamodb
Browse files Browse the repository at this point in the history
[5.8] Option to configure endpoint for DynamoDB
  • Loading branch information
taylorotwell authored May 24, 2019
2 parents 3872284 + cc90f67 commit bf7076f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ protected function createDynamodbDriver(array $config)
$dynamoConfig = [
'region' => $config['region'],
'version' => 'latest',
'endpoint' => $config['endpoint'] ?? null,
];

if ($config['key'] && $config['secret']) {
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/Cache/DynamoDbStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ protected function getEnvironmentSetUp($app)
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => 'us-east-1',
'table' => env('DYNAMODB_CACHE_TABLE', 'laravel_test'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
]);
}
}

0 comments on commit bf7076f

Please sign in to comment.