From 0ca876c5d05d8c1b649f8e6f8d9fc75837e38471 Mon Sep 17 00:00:00 2001 From: ProklUng Date: Fri, 20 Aug 2021 10:03:46 +0300 Subject: [PATCH] Internal things --- DataCollector/GuzzleCollector.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DataCollector/GuzzleCollector.php b/DataCollector/GuzzleCollector.php index b749c44..63084b5 100644 --- a/DataCollector/GuzzleCollector.php +++ b/DataCollector/GuzzleCollector.php @@ -122,6 +122,15 @@ protected function doCollect(Request $request, Response $response, \Throwable $e } $this->data = $data; + + // Внутренние нужды. Для сообщения между разными модулями в Битриксе + // запускается кастомное событие OnAfterDataCollectorDone + if (defined('B_PROLOG_INCLUDED') && B_PROLOG_INCLUDED===true) { + $events = GetModuleEvents('', 'OnAfterDataCollectorDone', true); + foreach ($events as $event) { + ExecuteModuleEventEx($event, ['dataCollector' => $this]); + } + } } /**