Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #37261 Fix register csrf protection listener (Ne-Lexa)
This PR was squashed before being merged into the 5.1 branch. Discussion ---------- Fix register csrf protection listener | Q | A | ------------- | --- | Branch? | 5.1.1 | Bug fix? | yes | New feature? | no | Deprecations? | np | Tickets | #37254 | License | MIT Fix TypeError. Expected instance `CsrfTokenManagerInterface`, but `SessionTokenStorage` was given. ``` Uncaught Error: Argument 1 passed to Symfony\Component\Security\Http\EventListener\CsrfProtectionListener::__construct() must implement interface Symfony\Component\Security\Csrf\CsrfTokenManagerInterface, instance of Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage given Uncaught PHP Exception TypeError: "Argument 1 passed to Symfony\Component\Security\Http\EventListener\CsrfProtectionListener::__construct() must implement interface Symfony\Component\Security\Csrf\CsrfTokenManagerInterface, instance of Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage given ``` Commits ------- 485361e Fix register csrf protection listener
- Loading branch information