I'd like to create some service that would be responsible for auto-redirecting some routes to secure version of the URL. For example:
http://domain.com/checkout -> https://secure.domain.com/checkout
http://domain.com/about // route not marked as secure, no redirection
I know I can partially achieve that with schema:
secure:
path: /secure
defaults: { _controller: AcmeDemoBundle:Main:secure }
schemes: [https]
However I also need to change hosts. Should I hook up to some kernel events or something?