Skip to content

Commit bd3120e

Browse files
authored
Merge pull request #3 from egeniq-forks/master
Added support for endpoint param to use with local DynamoDb server
2 parents bcfcd1e + d9a9bc7 commit bd3120e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php" : ">=5.3",
25+
"php" : ">=5.4",
2626
"aws/aws-sdk-php": "~3.0",
2727
"illuminate/support": "~5.0"
2828
},
@@ -40,4 +40,4 @@
4040
"config": {
4141
"sort-packages": true
4242
}
43-
}
43+
}

config/dynamodb-session.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'region' => env('AWS_REGION', null),
1111
'key' => env('AWS_ACCESS_KEY_ID', null),
1212
'secret' => env('AWS_SECRET_ACCESS_KEY', null),
13+
'endpoint' => env('DYNAMODB_HOST', null),
1314

1415
/*
1516
|--------------------------------------------------------------------------
@@ -18,4 +19,4 @@
1819
| Name of hash key in table. Default: "id".
1920
*/
2021
'hash_key' => env('DYNAMODB_HASH_KEY', 'id'),
21-
];
22+
];

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ return [
4040
'region' => env('AWS_REGION', null),
4141
'key' => env('AWS_ACCESS_KEY_ID', null),
4242
'secret' => env('AWS_SECRET_ACCESS_KEY', null),
43+
'endpoint' => env('DYNAMODB_HOST', null),
4344
4445
/*
4546
|--------------------------------------------------------------------------

src/SessionServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function boot()
2424
$client = new DynamoDbClient([
2525
'region' => config('dynamodb-session.region'),
2626
'version' => 'latest',
27+
'endpoint' => config('dynamodb-session.endpoint'),
2728
'credentials' => [
2829
'key' => config('dynamodb-session.key'),
2930
'secret' => config('dynamodb-session.secret'),

0 commit comments

Comments
 (0)