At this time the only way to create a Submenu is with the builder,
but the method in the builder is this,
```PHP
public function addSubMenuFromBuilder(string $text, CliMenuBuilder $builder) : self
{
$menu = $builder->build();
$menu->setParent($this->menu);
$this->menu->addItem($item = new MenuMenuItem(
$text,
$menu,
$builder->isMenuDisabled()
));
$this->processItemShortcut($item);
return $this;
}
```
Important is that all domains will be sorted.
herrhase
added this to the 0.1-Alpha milestone 4 years ago
At this time the only way to create a Submenu is with the builder,
but the method in the builder is this,
Important is that all domains will be sorted.