Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.76 KB

UPGRADE-5.0.md

File metadata and controls

60 lines (44 loc) · 1.76 KB

UPGRADE FROM 4.x to 5.0

Menu

  • Multiple level menu's is not currently supported by bootstrap 4

  • Imatic\Bundle\ViewBundle\Menu\Helper::setBadge() last attribute $right was removed

  • Imatic\Bundle\ViewBundle\Menu\Helper::setIcon() last attribute $right was removed

  • Imatic\Bundle\ViewBundle\Menu\Helper::transChoice() was removed, see https://symfony.com/doc/current/translation/message_format.html#pluralization

  • disabled must be set as link attribute

    Before:

    $menu->addChild('Reference', ['route' => 'homepage'])->setAttribute('class', 'disabled');

    After:

    $menu->addChild('Reference', ['route' => 'homepage'])->setLinkAttribute('class', 'disabled'); 
  • Removed Imatic\Bundle\ViewBundle\Menu\Helper::addDivider() method, to set divider use item attribute

    Before:

    $menu->addChild('Item', ['route' => 'homepage']);
    $helper->addDivider($menu);

    After:

    // vertical divider is no longer supported
    // divider is usable only with dropdown menu
    $menu->addChild('Item', ['route' => 'homepage'])->setAttribute('divider', true);
  • Removed Imatic\Bundle\ViewBundle\Menu\Helper::addHeader() method, to set menu header use just text menu item

    Before:

    $products = $menu->addChild('Products', ['route' => 'homepage']);
    $helper->addHeader($products, 'Products A');

    After:

    $menu->addChild('Products', ['route' => 'homepage']);
    $menu->addChild('Products A',);
  • Removed Imatic\Bundle\ViewBundle\Menu\Helper::setSubmenu() method, without any alternative

Icons

  • Glyphicons from Bootstram3 was replaced with Font Awesome
    • affects Imatic\Bundle\ViewBundle\Menu\Helper::setIcon() method