3declare(strict_types=1);
5namespace Bitrix\Socialnetwork\Control;
7use Bitrix\Main\DI\ServiceLocator;
8use Bitrix\Main\ObjectNotFoundException;
9use Bitrix\Socialnetwork\Control\Member\AbstractMemberService;
10use Bitrix\Socialnetwork\Internals\Registry\GroupRegistry;
11use Bitrix\Socialnetwork\Item\Workgroup\Type;
19 if (self::$instance ===
null)
21 self::$instance =
new self();
24 return self::$instance;
46 $locator = ServiceLocator::getInstance();
50 Type::Collab => $locator->get(
'socialnetwork.collab.member.facade'),
51 default => $locator->get(
'socialnetwork.group.member.service'),
77 $locator = ServiceLocator::getInstance();
81 Type::Collab => $locator->get(
'socialnetwork.collab.service'),
82 default => $locator->get(
'socialnetwork.group.service'),
getMemberServiceByEntityType(Type $type)
getServiceByEntityType(Type $type)
getMemberService(int $entityId)
getServiceByEntityId(int $entityId)