11use Bitrix\Socialnetwork\Control\Member\Trait\GetMembersTrait;
14use Psr\Container\NotFoundExceptionInterface;
28 $this->validationService = ServiceLocator::getInstance()->get(
'main.validation.service');
45 $validationResult = $this->validationService->validate($command);
46 if (!$validationResult->isSuccess())
48 return $validationResult;
53 $group = $this->
getRegistry()->get($command->getGroupId());
66 $validationResult = $this->validationService->validate($command);
67 if (!$validationResult->isSuccess())
69 return $validationResult;
74 $group = $this->
getRegistry()->get($command->getGroupId());
87 $validationResult = $this->validationService->validate($command);
88 if (!$validationResult->isSuccess())
90 return $validationResult;
95 $group = $this->
getRegistry()->get($command->getGroupId());
110 $validationResult = $this->validationService->validate($command);
111 if (!$validationResult->isSuccess())
113 return $validationResult;
116 $group = $this->
getRegistry()->get($command->getGroupId());
131 $validationResult = $this->validationService->validate($command);
132 if (!$validationResult->isSuccess())
134 return $validationResult;
137 $group = $this->
getRegistry()->get($command->getGroupId());
inviteImplementation(MembersCommand $command, Workgroup $group)
ValidationService $validationService
addModeratorsImplementation(MembersCommand $command, Workgroup $group)
deleteModerators(MembersCommand $command)
invite(MembersCommand $command)
add(MembersCommand $command)
addImplementation(MembersCommand $command, Workgroup $group)
deleteImplementation(MembersCommand $command, Workgroup $group)
deleteModeratorsImplementation(MembersCommand $command, Workgroup $group)
addModerators(MembersCommand $command)