Skip to content

v3.0.0-alpha1

Pre-release
Pre-release
Compare
Choose a tag to compare
@foxycode foxycode released this 09 Oct 20:27
· 20 commits to master since this release

Main changes

  • Minimal supported PHP version is now 8.0
  • Requires latte/latte ^3.0

Bug fixes

  • Fixed MenuExtension::normalizeMenuItems() method
  • Fixed breadcrumbs rendering (closes #50)
  • Added check in MenuItem menu template, if item is allowed

Improvements

  • Implemented MenuExtension config schema validation using Nette\Schema
  • Use Nette Translator interface instead of deprecated ITranslator

Refactoring

  • Split template configuration to new TemplatePaths and MenuVisibility classes
  • Moved $visbility and $data properties from MenuItem to traits
  • Move MenuItem actions to new MenuItemAction class
  • Moved Nette\Http\Request to NetteLinkGenerator, interface ILinkGenerator have new method absoluteLink() [BC break]
  • Renamed ArrayMenuLoader to DefaultMenuLoader [BC break]
  • Interface IMenuComponentFactory was removed, use MenuComponentFactory directly [BC break]
  • Removed MenuItem option to have custom linkGenerator for each menu item [BC break]
  • Changed Menu::setActivePresenter() method to not allow nulls [BC break]
  • Make working with data items more clear, MenuItem methods getData() , hasData(), addData() refactoring [BC break]