3declare(strict_types=1);
5namespace Bitrix\Socialnetwork\Collab\Control\Handler\Delete;
7use Bitrix\Main\DI\ServiceLocator;
9use Bitrix\Main\ObjectNotFoundException;
10use Bitrix\Socialnetwork\Collab\Collab;
11use Bitrix\Socialnetwork\Collab\Control\Command\CollabDeleteCommand;
12use Bitrix\Socialnetwork\Collab\Control\Option\Command\DeleteOptionsCommand;
13use Bitrix\Socialnetwork\Control\Command\DeleteCommand;
14use Bitrix\Socialnetwork\Control\Handler\Delete\DeleteHandlerInterface;
15use Bitrix\Socialnetwork\Control\Handler\HandlerResult;
16use Bitrix\Socialnetwork\Item\Workgroup;
17use Psr\Container\NotFoundExceptionInterface;
36 ->setCollabId($command->getId());
38 $service = ServiceLocator::getInstance()->get(
'socialnetwork.collab.option.service');
40 $optionResult =
$service->delete($optionCommand);
42 return $result->merge($optionResult);