knplabs/KnpMenu — pull request #21 by graindeweb (2011-11-21 18:18:53+00:00)
Title: fix bug when create from array

Hi,

Today I've used KnpMenu for the first time, and try to load menu from yaml file.
But I encoutered a problem : if no attribute "name" is set for each item, only the last one appears in my menu. So why not use the "key" of item in name ...

My yaml looks like this :

menus.backend_main:
name: backend_main
children:
home:
label: nav.home
route:
children:
activities:
label: nav.cms.last_activities
route:
sections:
label: nav.cms.sections
route:

I'm an absolute beginner on github, pull requests and so on.
So my apologies if I do not the right way ;)

Baptiste