Skip to content

Commit b66d8fb

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/Router/InitRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function router(): void
206206
}
207207

208208
// Для внутренних нужд пометить роут Symfony
209-
$this->request->headers->add(['X-Symfony-route', 1]);
209+
$this->request->headers->set('X-Symfony-route', 1);
210210

211211
// Send the response to the browser and exit app.
212212
$response->send();

0 commit comments

Comments
 (0)