Skip to content

Commit

Permalink
Merge pull request #10 from FluffyDiscord/sf-71
Browse files Browse the repository at this point in the history
Symfony 7.1, PHP 8.3 and early routing initialization can now be turned off
  • Loading branch information
FluffyDiscord authored Nov 13, 2024
2 parents 49d489b + b86b29a commit 9389585
Show file tree
Hide file tree
Showing 11 changed files with 939 additions and 1,347 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ class MyController

## Sessions

Currently, Symfony might struggle with sessions in worker mode, like loosing logged user or the opposite,
Currently, Symfony might sometimes struggle with sessions in worker mode, like loosing logged user or the opposite,
leaking logged user session to another request due to missing globals (explained at the end).

Bundle introduces `FluffyDiscord\RoadRunnerBundle\Session\WorkerSessionStorageFactory`, that handles native session correctly.
This factory gets registered automatically by default if you are using `symfony/flex` (pending flex recipe PR). You can also register it manually, for example in `framework.yaml`:
Register it manually if you happen to run into these issues, for example in `framework.yaml`:

```yaml
framework:
Expand Down
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
}
],
"require": {
"php": ">=8.2",
"php": ">=8.3",
"nyholm/psr7": "^1.8",
"spiral/roadrunner": "^v2024.1",
"symfony/dependency-injection": "^7.0",
"symfony/http-kernel": "^7.0",
"symfony/psr-http-message-bridge": "^7.0",
"symfony/runtime": "^7.0",
"symfony/framework-bundle": "^7.0",
"spiral/roadrunner-worker": "^v3.5",
"spiral/roadrunner-http": "^v3.5",
"spiral/roadrunner": "^v2024",
"symfony/dependency-injection": "^7.1",
"symfony/http-kernel": "^7.1",
"symfony/psr-http-message-bridge": "^7.1",
"symfony/runtime": "^7.1",
"symfony/framework-bundle": "^7.1",
"spiral/roadrunner-worker": "^v3",
"spiral/roadrunner-http": "^v3",
"spiral/roadrunner-cli": "^v2.6"
},
"minimum-stability": "dev",
Expand All @@ -41,10 +41,10 @@
}
},
"require-dev": {
"sentry/sentry-symfony": "^4.13",
"sentry/sentry-symfony": "^5",
"phpunit/phpunit": "^10.5",
"symfony/mime": "^7.0",
"roadrunner-php/centrifugo": "^v2.1",
"spiral/roadrunner-kv": "^v4.1"
"symfony/mime": "^7.1",
"roadrunner-php/centrifugo": "^v2",
"spiral/roadrunner-kv": "^v4"
}
}
Loading

0 comments on commit 9389585

Please sign in to comment.