liuggio/KnpMenuExtensionBundle — Issue #1: Hey, we doing same thing
Author: zerkalica
Created: 2012-02-12 13:04:21+00:00
State: open

I restored my menu bundle on top of knp menu: https://github.com/zerkalica/MillwrightMenuBundle

MillwrightMenuBundle extends base functionality of KnpMenuBundle and adds configuration, route, translation, context, roles, acls, annotations and many other.

I think about your event-based configuration, why do not use one menu builder service, all other bundles can configure and add any option to this menu builder, integration on config-level, not events ?

say:

```yaml
#first bundle

millwright_menu: #menu builder service
tree:
main_menu: # menu container name
user_view: #menu item
user_edit:
```

```yaml
#second bundle

millwright_menu:
tree:
main_menu:
article_view:
article_edit:
```

We can add numeric order parameter to each menu item, and sort it.