I want to create a service in Symfony2 that will take in the current request on the constructor and use it to determine the type of browser used for the request.
I can create the class and define it as a service but how do I pass in the current request using the XML service definition?