When I try to inject the @request into any of my services, I get this exception:
ScopeWideningInjectionException: Scope Widening Injection detected:
another way to inject currentRequest directly:
currentRequest
setter injection:
calls: - ['setRequest', ['@=service("request_stack").getCurrentRequest()']]
or constrauctor injection:
arguments: $request: '@=service("request_stack").getCurrentRequest()'