Symfony2 service parameters - passing the current request Symfony2 service parameters - passing the current request symfony symfony

Symfony2 service parameters - passing the current request


You should be able to just use the request service. This however requires your service to be declared with scope="request". Another approach i used was to inject the service-container and retrieve the request-Service form there when you need it.