I'm developing an Application in Symfony2 (twig templating) which will involve multiple bundles some of which may be swapped out in place of others. Each bundle will provide certain URLs and functionality at that URL.
What is a good practice for building up a menu full of links depending on what bundles are enabled?
My first thought is using twig to embed a controller that will check the kernel.bundles parameter and depending on that list build a menu on it. But I also may have to have sub navigation links open if the parent link is selected and I'm unsure as how to implement this yet.