braincrafted/bootstrap-bundle

Errors with menu

tarioch opened this issue · 2 comments

Since updating to the latest version (I did not update for a couple of weeks).

I'm now getting the error:

Variable "listAttributes" does not exist in BraincraftedBootstrapBundle:Menu:bootstrap.html.twig at line 32

if I change the code in the twig file initialize listAttributes with default([]), I'm getting

Key "currentDepth" for array with keys "depth, matchingDepth, currentAsLink, currentClass, ancestorClass, firstClass, lastClass, template, compressed, allow_safe_labels, clear_matcher, style" does not exist in BraincraftedBootstrapBundle:Menu:bootstrap.html.twig at line 98

do I need to change something else for the menu to work again?

I found it out myself, I used knp-menu @dev , switching them over to @Alpha fixes the issue.
So there might be some upcoming changes from knp-menu

I merged #210. Should be fixed.