You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #53172 [SecurityBundle] Prevent to login/logout without a request context (symfonyaml)
This PR was squashed before being merged into the 6.3 branch.
Discussion
----------
[SecurityBundle] Prevent to login/logout without a request context
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #53170
| License | MIT
Using `Security::login()` in a context without request throws a type error
See all details in the issue symfony/symfony#53170
In this PR, we prevent to use `Security::login()` and `Security::logout()` without a request context, to avoid a fatal error.
Commits
-------
aaa9392dd7 [SecurityBundle] Prevent to login/logout without a request context
0 commit comments