Пример #1
0
 /**
  * @param SidebarMenuKnpEvent $event
  */
 public function onSetupMenu(SidebarMenuKnpEvent $event)
 {
     $request = $event->getRequest();
     /*foreach ($this->getMenu($request) as $item) {
           $event->addItem($item);
       }*/
     $event->setMenu($this->getMenu($request));
 }
Пример #2
0
 /**
  * @param SidebarMenuKnpEvent $event
  */
 public function onSetupMenu(SidebarMenuKnpEvent $event)
 {
     $request = $event->getRequest();
     $event->setMenu($this->getMenu($request));
 }