Skip to content

Commit 0028294

Browse files
committed
autoconfigure chatter.transport_factory
1 parent 6a56e50 commit 0028294

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines 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)