KnpMenuBundle
KnpMenuBundle copied to clipboard
Automatically inject the menus into the container
The only reason that builder class is marked as the easy way is because of needing to manually wire the menu as a service in services.yaml. This step could be eliminated by adding an attribute (as @stof mentions in #464 ) and automatically wire and configure the service during the bundle configuration.
I'd be able to help with something like this if we simplified the bundle setup that was introduced in Symfony 6.1
I have a partial implementation locally already for the attribute. I started the work yesterday evening.
Hi @stof, I'm quite interested by this feature. Could you share your implementation ?