I'm trying to build a system that is highly modular and provides the possibility to add not only new backend functionality but also new frontend pages and therefor routes to a system. Since Symfony already provides a bundle system I decided to use this as bases.
The list of loaded bundles will be taken from the database and can differ from one installation to another. Thus I cannot just write a routing.yml which will be loaded through my Kernel for all bundles. I tried some ways now to let the bundle itself provide a rounting.yml defining it's own resources & types but either I overwrote all existing configurations or I got errors for unknown services.
I also couldn't find anything in documentation or cookbook regarding this so I'd be glad if someone could offer a solution or at least hint me into the right direction.