Skip to content

Commit

Permalink
Internal things
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Aug 20, 2021
1 parent 35d5512 commit 0ca876c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DataCollector/GuzzleCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
}

/**
Expand Down

0 comments on commit 0ca876c

Please sign in to comment.