Inject the application instead of the request into the matcher

This is done, to avoid scope issues with request object.