Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 877b173

Browse files
committed
bug #53004 [FrameworkBundle] Add missing webhook parsers (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Add missing webhook parsers | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Detected when reviewing this documentation PR: symfony/symfony-docs#19268 Should be merged after #53007, which brings notifier services removal conditionally Commits ------- b52b9e1 [FrameworkBundle] Add missing webhook parsers
2 parents 23f361c + b52b9e1 commit 877b173

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,9 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
26802680

26812681
if ($webhookEnabled) {
26822682
$webhookRequestParsers = [
2683+
MailerBridge\Brevo\Webhook\BrevoRequestParser::class => 'mailer.webhook.request_parser.brevo',
26832684
MailerBridge\Mailgun\Webhook\MailgunRequestParser::class => 'mailer.webhook.request_parser.mailgun',
2685+
MailerBridge\Mailjet\Webhook\MailjetRequestParser::class => 'mailer.webhook.request_parser.mailjet',
26842686
MailerBridge\Postmark\Webhook\PostmarkRequestParser::class => 'mailer.webhook.request_parser.postmark',
26852687
MailerBridge\Sendgrid\Webhook\SendgridRequestParser::class => 'mailer.webhook.request_parser.sendgrid',
26862688
];
@@ -2901,6 +2903,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
29012903

29022904
$webhookRequestParsers = [
29032905
NotifierBridge\Twilio\Webhook\TwilioRequestParser::class => 'notifier.webhook.request_parser.twilio',
2906+
NotifierBridge\Vonage\Webhook\VonageRequestParser::class => 'notifier.webhook.request_parser.vonage',
29042907
];
29052908

29062909
foreach ($webhookRequestParsers as $class => $service) {

src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_webhook.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@
1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

1414
use Symfony\Component\Notifier\Bridge\Twilio\Webhook\TwilioRequestParser;
15+
use Symfony\Component\Notifier\Bridge\Vonage\Webhook\VonageRequestParser;
1516

1617
return static function (ContainerConfigurator $container) {
1718
$container->services()
1819
->set('notifier.webhook.request_parser.twilio', TwilioRequestParser::class)
1920
->alias(TwilioRequestParser::class, 'notifier.webhook.request_parser.twilio')
21+
22+
->set('notifier.webhook.request_parser.vonage', VonageRequestParser::class)
23+
->alias(VonageRequestParser::class, 'notifier.webhook.request_parser.vonage')
2024
;
2125
};

0 commit comments

Comments
 (0)