KnpMenuBundle icon indicating copy to clipboard operation
KnpMenuBundle copied to clipboard

Automatically inject the menus into the container

Open tacman opened this issue 2 years ago • 2 comments

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

tacman avatar Oct 26 '23 13:10 tacman

I have a partial implementation locally already for the attribute. I started the work yesterday evening.

stof avatar Oct 26 '23 15:10 stof

Hi @stof, I'm quite interested by this feature. Could you share your implementation ?

simondaigre avatar Feb 15 '24 19:02 simondaigre