65 $offlineEventsCount = [];
66 $offlineEventsApp = [];
68 foreach ($this->eventList as $item)
70 $application = $item[
'APPLICATION'];
71 $handler = $item[
'HANDLER'];
74 $serverAuthData[
'client_id'] !== $application[
'CLIENT_ID']
75 || $serverAuthData[
'auth_connector'] !== $handler[
'CONNECTOR_ID']
78 if (!isset($offlineEventsCount[$application[
'CLIENT_ID']]))
80 $offlineEventsCount[$application[
'CLIENT_ID']] = [];
83 if (!isset($offlineEventsCount[$application[
'CLIENT_ID']][$handler[
'CONNECTOR_ID']]))
85 $offlineEventsCount[$application[
'CLIENT_ID']][$handler[
'CONNECTOR_ID']] = 0;
90 'APP_ID' => $application[
'ID'],
91 'EVENT_NAME' => $handler[
'EVENT_NAME'],
92 'EVENT_DATA' => $item[
'DATA'],
93 'EVENT_ADDITIONAL' => $item[
'AUTH'],
94 'CONNECTOR_ID' => $handler[
'CONNECTOR_ID'],
98 $offlineEventsCount[$application[
'CLIENT_ID']][$handler[
'CONNECTOR_ID']]++;
99 $offlineEventsApp[$application[
'ID']] =
true;
103 $logger = LoggerManager::getInstance()->getLogger();
108 .
"{date} - {host}\n{delimiter}\n"
109 .
"Event skipped because initializer is current application. \n"
110 .
"auth: {serverAuthData}"
111 .
"app: {application}\n",
113 'serverAuthData' => $serverAuthData,
114 'application' => $application,
121 if (!empty($offlineEventsCount))
126 if (!empty($offlineEventsApp))