for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Odiseo\SyliusVendorPlugin\Event;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Odiseo\SyliusVendorPlugin\Entity\VendorInterface;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
class VendorFormMenuBuilderEvent extends MenuBuilderEvent
{
/** @var VendorInterface */
private $vendor;
public function __construct(FactoryInterface $factory, ItemInterface $menu, VendorInterface $vendor)
parent::__construct($factory, $menu);
$this->vendor = $vendor;
}
public function getVendor(): VendorInterface
return $this->vendor;