I want to create one silex application that listens to requests to routes to two domains. Depending on the domain the response should be different. I know I can simply inject a Request object and use that to get the host from, but I'd like to use a nicer way like this, but using Silex.
Is this possible and if so: how?