File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Aws \Credentials \CredentialProvider ;
6
6
use Aws \DynamoDb \Marshaler ;
7
+ use Aws \DynamoDb \DynamoDbClient ;
8
+ use Aws \Sns \SnsClient ;
7
9
8
10
class SnsHandler {
9
11
// AWS DynamoDB handler
10
12
private $ ddb ;
11
13
12
14
// AWS region for SQS
13
15
private $ region ;
16
+ private $ marshaler ;
14
17
15
18
// AWS SNS handler
16
19
private $ sns ;
@@ -26,13 +29,13 @@ public function __construct($region = false) {
26
29
27
30
$ provider = CredentialProvider::defaultProvider ();
28
31
29
- $ this ->sns = new \ Aws \ Sns \ SnsClient ([
32
+ $ this ->sns = new SnsClient ([
30
33
"region " => $ region ,
31
34
"version " => "latest " ,
32
35
"credentials " => $ provider ,
33
36
]);
34
37
35
- $ this ->ddb = new \ Aws \ DynamoDb \ DynamoDbClient ([
38
+ $ this ->ddb = new DynamoDbClient ([
36
39
"region " => $ region ,
37
40
"version " => "latest " ,
38
41
"credentials " => $ provider ,
You can’t perform that action at this time.
0 commit comments