File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed
src/Symfony/Component/Notifier/Bridge/Novu Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,8 @@ class NovuTransport extends AbstractTransport
28
28
{
29
29
protected const HOST = 'web.novu.co ' ;
30
30
31
- private string $ apiKey ;
32
-
33
31
public function __construct (
34
- #[\SensitiveParameter] string $ apiKey ,
32
+ #[\SensitiveParameter] protected string $ apiKey ,
35
33
HttpClientInterface $ client = null ,
36
34
EventDispatcherInterface $ dispatcher = null
37
35
) {
Original file line number Diff line number Diff line change 1
1
Novu Notifier
2
- =================
2
+ =============
3
3
4
4
Provides [ Novu] ( https://novu.co/ ) integration for Symfony Notifier.
5
5
Original file line number Diff line number Diff line change @@ -32,15 +32,16 @@ public function testToArray()
32
32
[],
33
33
);
34
34
35
- $ expected = [
36
- 'firstName ' => 'Joe ' ,
37
- 'lastName ' => 'Smith ' ,
38
- 'email ' => 'test@example.com ' ,
39
- 'phone ' => null ,
40
- 'avatar ' => null ,
41
- 'locale ' => null ,
42
- ];
43
-
44
- $ this ->assertSame ($ expected , $ options ->toArray ());
35
+ $ this ->assertSame (
36
+ [
37
+ 'firstName ' => 'Joe ' ,
38
+ 'lastName ' => 'Smith ' ,
39
+ 'email ' => 'test@example.com ' ,
40
+ 'phone ' => null ,
41
+ 'avatar ' => null ,
42
+ 'locale ' => null ,
43
+ ],
44
+ $ options ->toArray ()
45
+ );
45
46
}
46
47
}
You can’t perform that action at this time.
0 commit comments