KnpMenu v1.1.0 Release Notes
Release Date: 2012-05-17 // almost 12 years ago-
- ๐ Marked
Knp\Menu\ItemInterface::getCurrentItem
as deprecated - โ Added a recursive filter iterator keeping only displayed items
- โ Added a filter iterator keeping only current items
- โ Added a recursive iterator for the item
- ๐ Fixed building an array of breadcrumbs when a label has only digits
- โ Added a way to mark a label as safe
- ๐จ Refactored the ListRenderer to be consistent with the TwigRenderer and provide the same extension points
- โ Added a way to attach extra data to an item
- โ Removed unnecessary optimization in the TwigRenderer
- โ Added some whitespace control in the Twig template to ensure an empty rendering is really empty
- [BC break] Use the childrenAttributes for the root instead of the attributes
- ๐ง Made the default options configurable for the TwigRenderer
- โ Added the support for menu registered as factory in PimpleProvider
- Added a way to use the options in
knp_menu_get()
in Twig templates - โ Added an array of options for the MenuProviderInterface
- โ Added a template to render an ordered list
- ๐จ Refactored the template a bit to make it easier to use an ordered list
- ๐ Allow omitting the name of the child in
fromArray
(the key is used instead)
- ๐ Marked