Skip to content

2.0.0 alpha1 release

Pre-release
Pre-release

Choose a tag to compare

@stof stof released this 03 Jul 08:34
· 366 commits to master since this release

This alpha release does not represent the final feature set of 2.0.
As the development of 2.0 hanged for a while, many people are already using the current state of the code so this alpha release allows them to lock it if they cannot update for the new changes.

Changelog:

  • Added protected methods buildOptions and configureItem in the MenuFactory as extension point by inheritance
  • [BC break] Refactored the way to mark items as current
    setCurrentUri, getCurrentUri and getCurrentItem have been removed from the ItemInterface.
    Determining the current items is now delegated to a matcher, and the default implementation
    uses voters to apply the matching. Getting the current items can be done thanks to the CurrentItemFilterIterator.
  • [BC break] The signature of the CurrentItemFilterIterator constructor changed to accept the item matcher
  • [BC break] Changed the format of the breadcrumb array
    Instead of storing the elements with the label as key and the uri as value
    the array now stores an array of array elements with 3 keys: label, uri and item.