Add ability to add items to menus in a sorted way
- Dominant language
- PHP
- Stars
- 1.4k
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Description
If you want to register menu entries in a modularized application like described in https://symfony.com/bundles/KnpMenuBundle/current/events.html the menu items will be added in the order the event listeners are executed. So basically random from an application standpoint. When adding menu items by event listeners I need to be able to control the order of the menu items when adding them, because at menu retrieval the information encapsulated in a module is no longer known.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the menu event-listener documentation at https://symfony.com/bundles/KnpMenuBundle/current/events.html and trace how listeners add items before menu retrieval. Define how callers can provide ordering information while preserving modular event registration, then verify that items are returned in the requested order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100