Skip to content

Commit 17f7628

Browse files
committed
fixed #199 - adjust docs to match interface
1 parent a3b844e commit 17f7628

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

docs/menu.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@ class MenuBuilderSubscriber implements EventSubscriberInterface
5555
{
5656
$blog = new MenuItemModel('blogId', 'Blog', 'item_symfony_route', [], 'fas fa-tachometer-alt');
5757

58-
$blog->addChild(
59-
new MenuItemModel('ChildOneItemId', 'ChildOneDisplayName', 'child_1_route', [], 'fas fa-rss-square')
60-
)->addChild(
61-
new MenuItemModel('ChildTwoItemId', 'ChildTwoDisplayName', 'child_2_route')
62-
);
58+
$blog->addChild(new MenuItemModel('ChildOneItemId', 'ChildOneDisplayName', 'child_1_route', [], 'fas fa-rss-square'));
59+
$blog->addChild(new MenuItemModel('ChildTwoItemId', 'ChildTwoDisplayName', 'child_2_route'));
6360

6461
$event->addItem($blog);
6562

0 commit comments

Comments
 (0)