src/Zicht/Bundle/MenuBundle/Menu/Builder.php
public function addGhostItem(Request $request, $item)
    {
        $item->addChild(
            $this->factory->createItem(
                $item['id'],
                array(
                    'uri' => $request->getRequestUri(),
                    'display' => false,
                    'label' => $item['title']
                )
            )
        );
    }
public function addGhostItem(Request $request, $item)
    {
        $item->addChild(
            $this->factory->createItem(
                $item['id'],
                array(
                    'uri' => $request->getRequestUri(),
                    'display' => false,
                    'label' => $item['title']
                )
            )
        );
    }
public function addGhostItem ( Request $ request , $ item ) { $ item -> addChild ( $ this -> factory -> createItem ( $ item [ 'id' ] , array ( 'uri' => $ request -> getRequestUri ( ) , 'display' => false , 'label' => $ item [ 'title' ] ) ) ) ; }
Adds an item on the fly that was not originally in the menu.

@param \Symfony\Component\HttpFoundation\Request $request
@param ItemInterface $item
@return void
Adds an item on the fly that was not originally in the menu .