- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/internals/notification/controller.php
- Класс: BitrixTasksInternalsNotificationController
- Вызов: Controller::onCommentCreated
public function onCommentCreated(TaskObject $task, int $commentId, string $text): self
{
(new NotificationUseCaseCommentCreated(
$task,
$this->buffer,
$this->userRepository,
new ProviderCollection(...$this->getDefaultNotificationProviders([
new MailExternalUserProvider(),
])),
))->execute($commentId, $text);
return $this;
}