Skip to content

1.1.0 release

Choose a tag to compare

@stof stof released this 03 Jul 08:31
· 422 commits to master since this release
  • 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)