mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-25 13:12:22 +01:00
61 lines
1.1 KiB
PHP
61 lines
1.1 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
|
||
|
*
|
||
|
*/
|
||
|
abstract class AbstractMenuEvent 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;
|
||
|
}
|
||
|
}
|