• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/notification/controller.php
  • Класс: BitrixTasksInternalsNotificationController
  • Вызов: Controller::onTaskStatusChanged
public function onTaskStatusChanged(TaskObject $task, int $taskCurrentStatus, array $params = []): self
{
	(new NotificationUseCaseTaskStatusChanged(
		$task,
		$this->buffer,
		$this->userRepository,
		new ProviderCollection(...$this->getDefaultNotificationProviders([
			new SocialNetworkNotificationProvider(),
		])),
	))->execute($taskCurrentStatus, $params);

	return $this;
}