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 8039f9b

Browse filesBrowse files
committed
add framework config and factory entries
1 parent 9403b2e commit 8039f9b
Copy full SHA for 8039f9b

File tree

Expand file treeCollapse file tree

4 files changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+12
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
use Symfony\Component\Mime\MimeTypeGuesserInterface;
9191
use Symfony\Component\Mime\MimeTypes;
9292
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
93+
use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransportFactory;
9394
use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory;
9495
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
9596
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
@@ -1917,6 +1918,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
19171918
TelegramTransportFactory::class => 'notifier.transport_factory.telegram',
19181919
NexmoTransportFactory::class => 'notifier.transport_factory.nexmo',
19191920
TwilioTransportFactory::class => 'notifier.transport_factory.twilio',
1921+
RocketChatTransportFactory::class => 'notifier.transport_factory.rocketchat',
19201922
];
19211923

19221924
foreach ($classToServices as $class => $service) {

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.xml
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<tag name="texter.transport_factory" />
2727
</service>
2828

29+
<service id="notifier.transport_factory.rocketchat" class="Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransportFactory" parent="notifier.transport_factory.abstract">
30+
<tag name="texter.transport_factory" />
31+
</service>
32+
2933
<service id="notifier.transport_factory.null" class="Symfony\Component\Notifier\Transport\NullTransportFactory" parent="notifier.transport_factory.abstract">
3034
<tag name="notifier.transport_factory" />
3135
</service>

‎src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class UnsupportedSchemeException extends LogicException
3838
'class' => Bridge\Twilio\TwilioTransportFactory::class,
3939
'package' => 'symfony/twilio-notifier',
4040
],
41+
'rocketchat' => [
42+
'class' => Bridge\RocketChat\RocketChatTransportFactory::class,
43+
'package' => 'symfony/rocketchat-notifier',
44+
],
4145
];
4246

4347
public function __construct(Dsn $dsn, string $name = null, array $supported = [])

‎src/Symfony/Component/Notifier/Transport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Transport.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Notifier;
1313

1414
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
15+
use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransportFactory;
1516
use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory;
1617
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
1718
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
@@ -38,6 +39,7 @@ class Transport
3839
TelegramTransportFactory::class,
3940
NexmoTransportFactory::class,
4041
TwilioTransportFactory::class,
42+
RocketChatTransportFactory::class,
4143
];
4244

4345
private $factories;

0 commit comments

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