This still requires someone to add this method, the Route generating code in both Symfony and the CMF project uses the
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php

So that should be better and save to use.

Reference.
https://github.com/symfony-cmf/Routing/blob/master/DynamicRouter.php
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/RouterInterface.php