Builder/ItemProcess.php
public function processMenu(ItemInterface $menu, array $options = []): ItemInterface
    {
        // Dispatch Event
        if ($menu->isEvent()) {
            $this->eventDispatcher->dispatch($menu->getId() . '.event', new PdMenuEvent($menu));
        }

        // Set Current URI
        $this->currentUri = $this->router->getContext()->getPathInfo();

        // Process Menu
        $this->recursiveProcess($menu, $options);

        return $menu;
    }
public function processMenu(ItemInterface $menu, array $options = []): ItemInterface
    {
        // Dispatch Event
        if ($menu->isEvent()) {
            $this->eventDispatcher->dispatch($menu->getId() . '.event', new PdMenuEvent($menu));
        }

        // Set Current URI
        $this->currentUri = $this->router->getContext()->getPathInfo();

        // Process Menu
        $this->recursiveProcess($menu, $options);

        return $menu;
    }
public function processMenu ( ItemInterface $ menu , array $ options = [ ] ) : ItemInterface { // Dispatch Event if ( $ menu -> isEvent ( ) ) { $ this -> eventDispatcher -> dispatch ( $ menu -> getId ( ) . '.event' , new PdMenuEvent ( $ menu ) ) ; } // Set Current URI $ this -> currentUri = $ this -> router -> getContext ( ) -> getPathInfo ( ) ; // Process Menu $ this -> recursiveProcess ( $ menu , $ options ) ; return $ menu ; }
Menu Processor.

@param ItemInterface $menu
@param array $options

@return ItemInterface
Menu Processor .