Integrate @schmittjoh's object-routing library into your Symfony2 project