File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/Symfony/Component/Mailer/Bridge/Sendgrid Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,29 @@ where:
17
17
- ` KEY ` is your Sendgrid API Key
18
18
19
19
20
- Webhook:
21
- --------
22
- Create route:
20
+ Webhook
21
+ -------
22
+
23
+ Create a route:
24
+
23
25
``` yaml
24
26
framework :
25
27
webhook :
26
28
routing :
27
29
sendgrid :
28
30
service : mailer.webhook.request_parser.sendgrid
29
- secret : ' !SENDGRID_VALIDATION_SECRET!' # Leave blank if you dont want to use the signature validation
31
+ secret : ' !SENDGRID_VALIDATION_SECRET!' # Leave blank if you dont want to use the signature validation
30
32
` ` `
31
- Create consumer:
33
+
34
+ And a consume:
35
+
32
36
` ` ` php
33
37
# [\Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer(name: 'sendgrid')]
34
38
class SendGridConsumer implements ConsumerInterface
35
39
{
36
40
public function consume(RemoteEvent|MailerDeliveryEvent $event) : void
37
41
{
38
- //your code
42
+ // your code
39
43
}
40
44
}
41
45
```
You can’t perform that action at this time.
0 commit comments