changed request subscriber to access the request using the DI container