Added new structure for subbar

This commit is contained in:
Kevin Frantz 2018-10-04 21:33:50 +02:00
parent cfcc498d4e
commit fd65859572
4 changed files with 21 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace App\Event\Menu\Topbar;
namespace App\Event\Menu\Subbar;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;

View File

@ -7,7 +7,7 @@ use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use App\Event\Menu\Topbar\SourceMenuEvent;
use App\Event\Menu\Subbar\SourceMenuEvent;
class Menu
{

View File

@ -0,0 +1,18 @@
<?php
namespace App\Subscriber;
/**
*
* @author kevinfrantz
*
*/
class NodeMenuSubscriber extends AbstractEntityMenuSubscriber
{
public static function getSubscribedEvents()
{
return [
];
}
}

View File

@ -2,7 +2,7 @@
namespace App\Subscriber;
use App\Event\Menu\Topbar\SourceMenuEvent;
use App\Event\Menu\Subbar\SourceMenuEvent;
class SourceMenuSubscriber extends AbstractEntityMenuSubscriber
{