I’m trying to create custom KNP Menu from knplabs/knp-menu-bundle using a template/html twig But I can’t figure out how to do it even following the syfmony.com tutorial Also I can do it by creating it as a service and using the MenuBuilder.php file. How do I create a knp menu as service using a twig ..
In a Symfony 5.0 Application I want to use the KnpMenuBundle. I installed it by running composer require knplabs/knp-menu-bundle “^3.0″ This automatically created an entry in [ProjectRoot]/config/bundles.php”: KnpBundleMenuBundleKnpMenuBundle::class => [‘all’ => true] Of course it downloaded the bundle as well. The documentation (found at: https://symfony.com/doc/master/bundles/KnpMenuBundle/index.html) states to configure the bundle one should edit the file ..