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_ 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 ##
@ -38,8 +38,8 @@ $client = new SnsClient([
'version' => 'latest',
'region' => 'us-west-2',
'credentials' => [
'key' => 'AKIAFIMBZAFZZQL42RMH',
'secret' => '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'
'key' => '<AWS KEY>',
'secret' => '<AWS SECRET>'
]
]);
$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 */
class TestAWSSNSHandler extends \PHPUnit\Framework\TestCase {
protected ?SnsClient $client = null;
protected ?Handler $handler = null;
protected ?AWSSNSHandler $handler = null;
public function setUp(): void {

Loading…
Cancel
Save