• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/pushwatchingmanager.php
  • Класс: BitrixCalendarSyncManagersPushWatchingManager
  • Вызов: PushWatchingManager::renewPushChannel
private function renewPushChannel(PushManagerInterface $vendorPushManager, Push $pushChannel): Result
{
	try
	{
		$result = $vendorPushManager->renewPush($pushChannel);

		if ($result->isSuccess())
		{
			$this->savePushChannel($pushChannel);
		}
		else
		{
			$result->addError(new Error('Error of renew push channel.'));
		}
	}
	catch(SyncException $e)
	{
		$result = (new Result())->addError(new Error('Error of renew push channel.', $e->getCode()));
	}

	return $result;
}