Closed as not planned
Closed as not planned
Description
Description
#46066 Allows to get the Firewall Config for a given Request, but the UserProvider is a string and doesn't give me the Service instance.
What I want, is to get the UserProvider (if able) for the current Firewall.
Either via a Service, or via RequestResolver.
Example:
- I have a Controller like ForgetPassword.
- I also have multiple Firewalls with different kind of Users, each should have their own ForgetPasswordAction
- Instead of Writing multiple Controller Classes, I can just use Routing and have the same Controller under Multiple Routes
- Now inside the Controller, I would like to access the UserProvider to give me the User I want to do my actions.
- Depending on the Route, I'm in a different Firewall, so I get a different UserProvider with a different User type.
Example
No response