mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 06:27:24 +01:00
61 lines
1.0 KiB
PHP
61 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Event\Menu;
|
|
|
|
use Knp\Menu\FactoryInterface;
|
|
use Knp\Menu\ItemInterface;
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
use Symfony\Component\HttpFoundation\RequestStack;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
class MenuEvent extends Event
|
|
{
|
|
/**
|
|
* @var FactoryInterface
|
|
*/
|
|
private $factory;
|
|
|
|
/**
|
|
* @var ItemInterface
|
|
*/
|
|
private $item;
|
|
|
|
/**
|
|
* @var RequestStack
|
|
*/
|
|
private $request;
|
|
|
|
public function __construct(FactoryInterface $factory, ItemInterface $item, RequestStack $request)
|
|
{
|
|
$this->factory = $factory;
|
|
$this->item = $item;
|
|
$this->request = $request;
|
|
}
|
|
|
|
/**
|
|
* @return FactoryInterface
|
|
*/
|
|
public function getFactory(): FactoryInterface
|
|
{
|
|
return $this->factory;
|
|
}
|
|
|
|
/**
|
|
* @return ItemInterface
|
|
*/
|
|
public function getItem(): ItemInterface
|
|
{
|
|
return $this->item;
|
|
}
|
|
|
|
/**
|
|
* @return RequestStack
|
|
*/
|
|
public function getRequest(): RequestStack
|
|
{
|
|
return $this->request;
|
|
}
|
|
}
|