1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 02:01:19 +02:00

Use Illuminate Session component instead of Symfony

Symfony's component relies on PHP's native session functionality, which
is not ideal. It automatically sets its own cookie headers, resulting in
this issue: https://github.com/flarum/core/issues/1084#issuecomment-364569953

The Illuminate component is more powerful and has a simpler API for
extension with other drivers and such, and fits in nicely with other
components we use (the majority of which are from Illuminate).
This commit is contained in:
Toby Zerner
2018-02-10 12:04:07 +10:30
committed by Franz Liedke
parent 87860b471f
commit a0105eb40b
12 changed files with 91 additions and 38 deletions

View File

@@ -464,7 +464,7 @@ class FrontendView
return [
'userId' => $actor->id,
'csrfToken' => $session->get('csrf_token')
'csrfToken' => $session->token()
];
}