RuleMaster::sendSystemEvents

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. RuleMaster
  4. sendSystemEvents
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/queue/rule/rulemaster.php
  • Класс: BitrixCalendarCoreQueueRuleRuleMaster
  • Вызов: RuleMaster::sendSystemEvents
public function sendSystemEvents(): void
{
	// TODO: move it to right place
	QueueListenerDispatcher::register();

	foreach ($this->getRoutedQueues() as $queue)
	{
		$event = new Event(
			"calendar",
			self::ON_QUEUE_PUSHED_EVENT_NAME,
			[
				'queue' => $queue,
			],
		);
		EventManager::getInstance()->send($event);
	}
}

Добавить комментарий