Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 23f361c

Browse filesBrowse 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
Copy full SHA for 23f361c

File tree

1 file changed

+13
-1
lines changed
Filter options

1 file changed

+13
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+13-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.