Browse Source

Updated README, removed fake key and secret to get bots off my ass

main 1.0.1
Dustin Wilson 6 months ago
parent
commit
cde286cf4f
  1. 6
      README.md
  2. 2
      tests/cases/TestAWSSNSHandler.php

6
README.md

@ -8,7 +8,7 @@
# AWSSNSHandler # # AWSSNSHandler #
_AWSSNSHandler_ is a Throwable handler for use in [_Catcher_][a], a Throwable and error handling library for PHP. It sends throwables and errors to Amazon SNS topics. Right now _AWSSNSHandler_ only supports sending to email topics. SMS messages aren't supported at this time. _AWSSNSHandler_ is a Throwable handler for use in [_Catcher_][a], a Throwable and error handling library for PHP. It sends throwables and errors to Amazon SNS topics. Right now _AWSSNSHandler_ only supports sending to standard topics.
## Requirements ## ## Requirements ##
@ -38,8 +38,8 @@ $client = new SnsClient([
'version' => 'latest', 'version' => 'latest',
'region' => 'us-west-2', 'region' => 'us-west-2',
'credentials' => [ 'credentials' => [
'key' => 'AKIAFIMBZAFZZQL42RMH', 'key' => '<AWS KEY>',
'secret' => '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' 'secret' => '<AWS SECRET>'
] ]
]); ]);
$catcher = new Catcher(new AWSSNSHandler($client, 'arn:aws:sns:us-west-2:701867229025:ook_eek')); $catcher = new Catcher(new AWSSNSHandler($client, 'arn:aws:sns:us-west-2:701867229025:ook_eek'));

2
tests/cases/TestAWSSNSHandler.php

@ -21,7 +21,7 @@ use Aws\Sns\SnsClient,
/** @covers \MensBeam\Catcher\AWSSNSHandler */ /** @covers \MensBeam\Catcher\AWSSNSHandler */
class TestAWSSNSHandler extends \PHPUnit\Framework\TestCase { class TestAWSSNSHandler extends \PHPUnit\Framework\TestCase {
protected ?SnsClient $client = null; protected ?SnsClient $client = null;
protected ?Handler $handler = null; protected ?AWSSNSHandler $handler = null;
public function setUp(): void { public function setUp(): void {

Loading…
Cancel
Save