KnpLabs / KnpLabs/KnpMenu

Add ability to add items to menus in a sorted way

Open
#380 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.