File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` laravel-webhook-client ` will be documented in this file
4
4
5
+ ## 2.0.1 - 2019-07-08
6
+
7
+ - make ` signing_secret ` and ` signature_header_name ` config keys optional
8
+
5
9
## 2.0.0 - 2019-07-08
6
10
7
11
- ` DefaultSignatureValidator ` is now responsible for verifying that a signature header has been set
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ public function __construct(array $properties)
33
33
{
34
34
$ this ->name = $ properties ['name ' ];
35
35
36
- $ this ->signingSecret = $ properties ['signing_secret ' ];
36
+ $ this ->signingSecret = $ properties ['signing_secret ' ] ?? '' ;
37
37
38
- $ this ->signatureHeaderName = $ properties ['signature_header_name ' ];
38
+ $ this ->signatureHeaderName = $ properties ['signature_header_name ' ] ?? '' ;
39
39
40
40
if (! is_subclass_of ($ properties ['signature_validator ' ], SignatureValidator::class)) {
41
41
throw InvalidConfig::invalidSignatureValidator ($ properties ['signature_validator ' ]);
You can’t perform that action at this time.
0 commit comments