Skip to content

Commit 1cc966f

Browse files
committed
После обработки роута отрабатывает событие OnAfterEpilog
1 parent 3414aa5 commit 1cc966f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/InitRouter.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function handle(): void
180180

181181
// Handle if no route match found
182182
if ($response->getStatusCode() === 404) {
183-
// If no route found do noting and let continue.
183+
// If no route found do nothing and let continue.
184184
return;
185185
}
186186

@@ -190,6 +190,11 @@ public function handle(): void
190190
// Send the response to the browser and exit app.
191191
$response->send();
192192

193+
$events = GetModuleEvents('main', 'OnAfterEpilog', true);
194+
foreach($events as $event) {
195+
ExecuteModuleEventEx($event);
196+
}
197+
193198
exit;
194199
}
195200

0 commit comments

Comments
 (0)