use the Symfony CMF Routing component

credits: https://github.com/lsmith77 and https://github.com/stewe