<?php
namespace App\Menu;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
use Symfony\Contracts\Translation\TranslatorInterface;
final class AdminMenuListener
{
public function addAdminMenuItems(MenuBuilderEvent $event): void
{
$menu = $event->getMenu();
$customerssubmenu = $menu->getChild("sales");
$customerssubmenu
->addChild('new-licencessubitem', ['route' => 'app_admin_licencefile_index'])
->setLabel("app.ui.licences")
->setLabelAttribute('icon', 'key');
}
}