sf4, fix error with index 'icon' in menu

This commit is contained in:
Tchama 2020-08-03 12:34:11 +02:00
parent 43a975ae48
commit ec726ced19
2 changed files with 3 additions and 2 deletions

View File

@ -115,7 +115,8 @@ class MenuComposer
'order' => $order
])
->setExtras([
'icon' => $route['icon'],
//'icon' => $route['icon'],
// sf4 check: commented to avoid error: `An exception has been thrown during the rendering of a template ("Notice: Undefined index: icon").`
'order' => $order
])
;

View File

@ -82,7 +82,7 @@ class MenuTwig extends AbstractExtension implements ContainerAwareInterface
* - layout: the layout. Absolute path needed (i.e.: ChillXyzBundle:section:foo.html.twig)
* - activeRouteKey : the key active, will render the menu differently.
*
* see https://redmine.champs-libres.coop/issues/179 for more informations
* @deprecated link: see https://redmine.champs-libres.coop/issues/179 for more informations
*
* @param string $menuId
* @param mixed[] $params