• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/eventdispatcher/eventdispatcher.php
  • Класс: BitrixCatalogEventDispatcherEventDispatcher
  • Вызов: EventDispatcher::dispatch
public function dispatch(): array
{
	$bindings = [];
	$classes = $this->collectEntityEventBind();

	foreach ($classes as $class)
	{
		$reflection = new ReflectionClass($class);
		if (
			!$reflection->isInterface()
			&& !$reflection->isAbstract()
			&& !$reflection->isTrait())
		{
			if ($reflection->implementsInterface('\Bitrix\Rest\Event\EventBindInterface'))
			{
				$bindings += $this->getBindings($class);
			}
		}
	}
	return [
		self::SCOPE_CATALOG => [
			CRestUtil::EVENTS => $bindings
		]
	];
}