<?php
namespace App\Menu\Event;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent as BaseMenuBuilderEvent;
use Symfony\Component\DependencyInjection\ContainerInterface;
class MenuBuilderEvent extends BaseMenuBuilderEvent
{
const ADMIN_MENU_BUILDER = 'admin_menu_builder';
/** @var ContainerInterface */
protected $container;
public function __construct(FactoryInterface $factory, ItemInterface $menu, ContainerInterface $container)
{
parent::__construct($factory, $menu);
$this->container = $container;
}
/**
* @return ContainerInterface
*/
public function getContainer(): ContainerInterface
{
return $this->container;
}
}