<?php
namespace App\Menu;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
final class AccountMenuListener
{
public function addAccountMenuItems(MenuBuilderEvent $event): void
{
$menu = $event->getMenu();
$menu
->addChild('new Licence', ['route' => 'get_user_autorisations'])
->setLabel('sylius.ui.my_licences')
->setLabelAttribute('icon', 'key')
;
}
}