code: public function addDivider()
      {
          $name = $this->getName().'_divider_'.$this->nbDividers;
          $child = $this->factory->createItem($name);
  
          $child->setParent($this);
          $child->setCurrentUri($this->getCurrentUri());
  
          $child->setChildrenAttribute('class', 'divider');
          $child->setDisplayLink(false);
          $child->setDisplayLabel(false);
  
          $this->children[$child->getName()] = $child;
  
          $this->nbDividers++;
          return $child;
      }
docs: Add a divider
  
  @return VinceT\AdminBundle\Menu\MenuItem