1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Locator.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Service;
4
5use Bitrix\Im\V2\Pull\Sender;
6use Bitrix\Main\DI\ServiceLocator;
7
8class Locator
9{
10 private static ?Context $context = null;
11
12 private function __construct()
13 {}
14
15 public static function getMessenger(): Messenger
16 {
17 return ServiceLocator::getInstance()->get('Im.Messenger');
18 }
19
20 public static function getPullSender(): Sender
21 {
22 return ServiceLocator::getInstance()->get('Im.PullSender');
23 }
24
25 public static function getAccessService(): AccessService
26 {
27 return ServiceLocator::getInstance()->get('Im.AccessService');
28 }
29
30 public static function getContext(): Context
31 {
32 if (!self::$context instanceof Context)
33 {
35 }
36
37 return self::$context;
38 }
39
40 public static function setContext(?Context $context): void
41 {
42 self::$context = $context;
43 }
44}
static getAccessService()
Определения Locator.php:25
static getMessenger()
Определения Locator.php:15
static setContext(?Context $context)
Определения Locator.php:40
static getContext()
Определения Locator.php:30
static getPullSender()
Определения Locator.php:20
Определения culture.php:9