For example, it's done like that in the [SymfonyCmfRoutingExtraBundle](https://github.com/symfony-cmf/RoutingExtraBundle/blob/master/DependencyInjection/SymfonyCmfRoutingExtraExtension.php#L47) too. That is the only way i know. Do you know a better one ?