Skip to content

Commit 23f361c

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [FrameworkBundle] Fix webhook parser service removal and add notifier parser service removal
2 parents e0df5c3 + 1aa17b8 commit 23f361c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
26862686
];
26872687

26882688
foreach ($webhookRequestParsers as $class => $service) {
2689-
$package = substr($service, \strlen('mailer.transport_factory.'));
2689+
$package = substr($service, \strlen('mailer.webhook.request_parser.'));
26902690

26912691
if (!ContainerBuilder::willBeAvailable(sprintf('symfony/%s-mailer', 'gmail' === $package ? 'google' : $package), $class, ['symfony/framework-bundle', 'symfony/mailer'])) {
26922692
$container->removeDefinition($service);
@@ -2898,6 +2898,18 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
28982898

28992899
if ($webhookEnabled) {
29002900
$loader->load('notifier_webhook.php');
2901+
2902+
$webhookRequestParsers = [
2903+
NotifierBridge\Twilio\Webhook\TwilioRequestParser::class => 'notifier.webhook.request_parser.twilio',
2904+
];
2905+
2906+
foreach ($webhookRequestParsers as $class => $service) {
2907+
$package = substr($service, \strlen('notifier.webhook.request_parser.'));
2908+
2909+
if (!ContainerBuilder::willBeAvailable(sprintf('symfony/%s-notifier', $package), $class, ['symfony/framework-bundle', 'symfony/notifier'])) {
2910+
$container->removeDefinition($service);
2911+
}
2912+
}
29012913
}
29022914
}
29032915

0 commit comments

Comments
 (0)