-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
merged branch jmikola/logout-csrf (PR #3007) #3508
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ping @jmikola - I guess injecting the container in the helper is the only option here? |
I can also confirm this problem. I was about to log an issue when I saw this one. It is easy to test the issue by cloning Regards, |
Thanks for the repro steps, @maoueh. I'll look into this. |
Commits ------- 8796276 [SecurityBundle] Avoid direct request dependency in LogoutUrlHelper Discussion ---------- [SecurityBundle] Avoid direct request dependency in LogoutUrlHelper This quickly addresses the problem when the helper is constructed in a console environment without request scope. Ideally, the helper should be able to construct the absolute logout URL using data already available in the UrlGenerator's RequestContext and the $_SERVER environment variable; however, that will require copying some code from the Request class to create a base URI and path. Fixes symfony#3508 [](http://travis-ci.org/jmikola/symfony)
@jmikola Thank you for your quick response time on this issue :) Cheers, |
After merged branch jmikola/logout-csrf (PR #3007) I get the exception:
You cannot create a service ("request") of an inactive scope ("request").
when running any console command. The logoutUrl helper looks like it is looking for the request during cache warmup maybe as the error does not happen if yo turn of optional cache warm.
It also happens when running commands like router:debug
The text was updated successfully, but these errors were encountered: