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 35d110c

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

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
@@ -201,6 +201,7 @@
201201
use Symfony\Contracts\Service\ResetInterface;
202202
use Symfony\Contracts\Service\ServiceSubscriberInterface;
203203
use Symfony\Contracts\Translation\LocaleAwareInterface;
204+
use Symfony\Component\Notifier\Transport\TransportFactoryInterface as NotifierTransportFactoryInterface;
204205

205206
/**
206207
* Process the configuration and prepare the dependency injection container with
@@ -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.