Skip to content

Commit b1de681

Browse files
committed
Заголовок X-Symfony-route для роутов Symfony
1 parent 1cc966f commit b1de681

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/InitRouter.php

+4
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,16 @@ public function handle(): void
184184
return;
185185
}
186186

187+
// Для внутренних нужд пометить роут Symfony
188+
$this->request->headers->add(['X-Symfony-route', 1]);
189+
187190
// Перебиваю битриксовый 404 для роутов.
188191
CHTTP::SetStatus('200 OK');
189192

190193
// Send the response to the browser and exit app.
191194
$response->send();
192195

196+
// Инициирование события OnAfterEpilog
193197
$events = GetModuleEvents('main', 'OnAfterEpilog', true);
194198
foreach($events as $event) {
195199
ExecuteModuleEventEx($event);

0 commit comments

Comments
 (0)