Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Re-adding , '@session.flash_bag'#15184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
It was there in 4.4:https://symfony.com/doc/4.4/session.html#basic-usageBut when I omit it, I'm getting (Symfony 5.2):> Circular reference detected for service "session", path: "session -> session.flash_bag -> session".TODO: PHP config is missing for this code block. I'm doing it like this - should I make a PR? (But I don't know the XML way)```phpuse function Symfony\Component\DependencyInjection\Loader\Configurator\service;use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag;use Symfony\Component\HttpFoundation\Session\Session;$services->set('session', Session::class)->public()->args([service('session.storage'), service('session.namespacedattributebag')]);$services->set('session.namespacedattributebag', NamespacedAttributeBag::class);```
ThomasLandauer commentedApr 3, 2021
Actually, I'm not sure anymore about this. When passing
But when not passing it, I'm getting the circular reference exception (see above), which should have been fixed bysymfony/symfony#36261 So what's the status now? |
wouterj commentedSep 4, 2022
I'm closing here, it seems like another contribution was merged that re-added the |
It was there in 4.4:https://symfony.com/doc/4.4/session.html#basic-usage
But when I omit it, I'm getting (Symfony 5.2):
TODO: PHP config is missing for this code block. I'm doing it like this - should I make a PR? (But I don't know the XML way)