|
90 | 90 | use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory;
|
91 | 91 | use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
|
92 | 92 | use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
|
| 93 | +use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory; |
93 | 94 | use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
|
94 | 95 | use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
|
95 | 96 | use Symfony\Component\Mailer\Bridge\Sendinblue\Transport\SendinblueTransportFactory;
|
|
151 | 152 | use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
|
152 | 153 | use Symfony\Component\Notifier\Notifier;
|
153 | 154 | use Symfony\Component\Notifier\Recipient\Recipient;
|
| 155 | +use Symfony\Component\Notifier\Transport\TransportFactoryInterface as NotifierTransportFactoryInterface; |
154 | 156 | use Symfony\Component\PropertyAccess\PropertyAccessor;
|
155 | 157 | use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface;
|
156 | 158 | use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface;
|
@@ -2334,6 +2336,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
|
2334 | 2336 | SendgridTransportFactory::class => 'mailer.transport_factory.sendgrid',
|
2335 | 2337 | SendinblueTransportFactory::class => 'mailer.transport_factory.sendinblue',
|
2336 | 2338 | SesTransportFactory::class => 'mailer.transport_factory.amazon',
|
| 2339 | + OhMySmtpTransportFactory::class => 'mailer.transport_factory.ohmysmtp', |
2337 | 2340 | ];
|
2338 | 2341 |
|
2339 | 2342 | foreach ($classToServices as $class => $service) {
|
@@ -2406,6 +2409,12 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
|
2406 | 2409 |
|
2407 | 2410 | $container->getDefinition('notifier.channel_policy')->setArgument(0, $config['channel_policy']);
|
2408 | 2411 |
|
| 2412 | + $container->registerForAutoconfiguration(NotifierTransportFactoryInterface::class) |
| 2413 | + ->addTag('chatter.transport_factory'); |
| 2414 | + |
| 2415 | + $container->registerForAutoconfiguration(NotifierTransportFactoryInterface::class) |
| 2416 | + ->addTag('texter.transport_factory'); |
| 2417 | + |
2409 | 2418 | $classToServices = [
|
2410 | 2419 | AllMySmsTransportFactory::class => 'notifier.transport_factory.allmysms',
|
2411 | 2420 | AmazonSnsTransportFactory::class => 'notifier.transport_factory.amazonsns',
|
|
0 commit comments