I am passing an argument from services.yml to an authentication handler, and getting this error:
....must be an instance of Symfony\Component\Security\Http\HttpUtils
This is the class:
class AuthenticationFailure extends DefaultAuthenticationFailureHandler
{
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
{
I have tried all of these but none work:
- @http_kernel
- @request
- @security.access.decision_manager
- @security.context
- @security.authentication.manager
- @security.secure_random
- @security.firewall
- @service_container
What am I missing?
So I just need to know what service do I pass that is an instance of Symfony\Component\Security\Http\HttpUtils