Skip to content

Commit

Permalink
Merge branch 'tmp/2.2.5' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugot committed Nov 12, 2024
2 parents dafc56e + d1b1f17 commit 7abccc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SA/SnsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@

use Aws\Credentials\CredentialProvider;
use Aws\DynamoDb\Marshaler;
use Aws\DynamoDb\DynamoDbClient;
use Aws\Sns\SnsClient;

class SnsHandler {
// AWS DynamoDB handler
private $ddb;

// AWS region for SQS
private $region;
private $marshaler;

// AWS SNS handler
private $sns;
Expand All @@ -26,13 +29,13 @@ public function __construct($region = false) {

$provider = CredentialProvider::defaultProvider();

$this->sns = new \Aws\Sns\SnsClient([
$this->sns = new SnsClient([
"region" => $region,
"version" => "latest",
"credentials" => $provider,
]);

$this->ddb = new \Aws\DynamoDb\DynamoDbClient([
$this->ddb = new DynamoDbClient([
"region" => $region,
"version" => "latest",
"credentials" => $provider,
Expand Down

0 comments on commit 7abccc1

Please sign in to comment.