File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Symfony \Component \DependencyInjection \Loader \Configurator ;
4
+
5
+ use Proklung \Notifier \Bitrix \EventBridgeMail ;
6
+ use Proklung \Notifier \Bitrix \EventBridgeSms ;
7
+ use Proklung \Notifier \Bitrix \Sender \BitrixMailEventSender ;
8
+ use Proklung \Notifier \Bitrix \Sender \BitrixPolicySender ;
9
+ use Proklung \Notifier \Bitrix \Sender \BitrixSmsSender ;
10
+ use Proklung \Notifier \Bitrix \Sender \BitrixTelegramEventSender ;
11
+
12
+ return static function (ContainerConfigurator $ container ) {
13
+ $ container ->services ()
14
+ ->set (EventBridgeMail::class, EventBridgeMail::class)
15
+ ->public ()
16
+
17
+ ->set (EventBridgeSms::class, EventBridgeSms::class)
18
+ ->public ()
19
+
20
+ ->set (BitrixPolicySender::class, BitrixPolicySender::class)
21
+ ->args ([service (EventBridgeMail::class), service ('notifier ' )])
22
+ ->public ()
23
+
24
+ ->set (BitrixMailEventSender::class, BitrixMailEventSender::class)
25
+ ->args ([service (EventBridgeMail::class), service ('notifier ' )])
26
+ ->public ()
27
+
28
+ ->set (BitrixSmsSender::class, BitrixSmsSender::class)
29
+ ->args ([service (EventBridgeSms::class), service ('texter ' )])
30
+ ->public ()
31
+
32
+ ->set (BitrixTelegramEventSender::class, BitrixTelegramEventSender::class)
33
+ ->args ([service (EventBridgeMail::class), service ('chatter ' )])
34
+ ->public ()
35
+ ;
36
+ };
Original file line number Diff line number Diff line change @@ -106,8 +106,10 @@ public function initContainer() : void
106
106
static ::$ container ->setParameter ('mailer_enabled ' , false );
107
107
108
108
$ loader = new PhpFileLoader (static ::$ container , new FileLocator (__DIR__ . '/../../configs ' ));
109
+
109
110
$ loader ->load ('notifier.php ' );
110
111
$ loader ->load ('notifier_transports.php ' );
112
+ $ loader ->load ('bitrix.php ' );
111
113
112
114
$ configManager = new \Proklung \Notifier \DI \Configuration (
113
115
static ::$ container ->getParameter ('kernel.debug ' )
You can’t perform that action at this time.
0 commit comments