Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 7a84656

Browse files
Merge pull request #96 from doctrine/dynamodb-refactoring
DynamoDB internal refactoring
2 parents e32cd91 + 76b76d4 commit 7a84656

File tree

6 files changed

+233
-554
lines changed

6 files changed

+233
-554
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: php
22

33
services:
4+
- docker
45
- mongodb
56
- redis-server
67

@@ -26,6 +27,7 @@ cache:
2627
apt: true
2728

2829
before_install:
30+
- docker run -d -p 8000:8000 amazon/dynamodb-local
2931
- sudo apt-get install -y --allow-unauthenticated riak
3032
- sudo service riak start
3133
- pecl install --force mongodb

docs/reference/configuration.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ So far the following drivers exist (and are documented here):
5858
* Microsoft Windows Azure Table
5959
* Couchbase
6060
* CouchDB
61+
* DynamoDB
6162
* MongoDB
6263
* Riak
6364

@@ -209,17 +210,9 @@ See the `AWS docs <http://docs.aws.amazon.com/amazondynamodb/latest/developergui
209210
210211
<?php
211212
212-
$sdk = new \Aws\Sdk([...]);
213-
$client = $sdk->createDynamoDb();
214-
215-
$storage = new DynamoDbStorage(
216-
$client,
217-
// Optional key name, defaults to Id.
218-
null,
219-
// Optional table name/ key name pairs.
220-
// This example uses a table called Awesome keyed by MyKey.
221-
['storage_keys' => ['Awesome' => 'MyKey']]
222-
);
213+
$client = DynamoDbClient::factory([...])
214+
215+
$storage = new DynamoDbStorage($client);
223216
224217
MongoDB
225218
-------

0 commit comments

Comments
 (0)