Skip to content

Navigation Menu

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 d6d012c

Browse filesBrowse files
committed
autoconfigure chatter.transport_factory
1 parent 65e1463 commit d6d012c
Copy full SHA for d6d012c

File tree

1 file changed

+7
-0
lines changed
Filter options

1 file changed

+7
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
152152
use Symfony\Component\Notifier\Notifier;
153153
use Symfony\Component\Notifier\Recipient\Recipient;
154+
use Symfony\Component\Notifier\Transport\TransportFactoryInterface as NotifierTransportFactoryInterface;
154155
use Symfony\Component\PropertyAccess\PropertyAccessor;
155156
use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface;
156157
use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface;
@@ -2426,6 +2427,12 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
24262427

24272428
$container->getDefinition('notifier.channel_policy')->setArgument(0, $config['channel_policy']);
24282429

2430+
$container->registerForAutoconfiguration(NotifierTransportFactoryInterface::class)
2431+
->addTag('chatter.transport_factory');
2432+
2433+
$container->registerForAutoconfiguration(NotifierTransportFactoryInterface::class)
2434+
->addTag('texter.transport_factory');
2435+
24292436
$classToServices = [
24302437
AllMySmsTransportFactory::class => 'notifier.transport_factory.allmysms',
24312438
AmazonSnsTransportFactory::class => 'notifier.transport_factory.amazonsns',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.