Skip to content

Commit 65a7f79

Browse files
authored
Merge pull request #13 from openclassify/vedatakdgn
update dispatch functions
2 parents 4e8f803 + 5ac5a50 commit 65a7f79

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Commands/GetInteractiveMenus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function ($module) {
5858

5959
$icon = $navigation[$index]['icon'];
6060

61-
$navigation[$index]['icon'] = $this->dispatchNow(new GetIcon($icon));
61+
$navigation[$index]['icon'] = $this->dispatchSync(new GetIcon($icon));
6262

6363
$module = app('addon.collection')->get($item['slug']);
6464

src/SubmenuPlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ public function getFunctions()
1313
new \Twig_SimpleFunction(
1414
'getSubmenus',
1515
function ($namespace) {
16-
return $this->dispatch(new GetSubMenus($namespace));
16+
return $this->dispatchSync(new GetSubMenus($namespace));
1717
}
1818
),
1919
new \Twig_SimpleFunction(
2020
'getInteractiveMenus',
2121
function () {
22-
return $this->dispatch(new GetInteractiveMenus());
22+
return $this->dispatchSync(new GetInteractiveMenus());
2323
}
2424
),
2525
new \Twig_SimpleFunction(
2626
'getSections',
2727
function ($namespace) {
28-
return $this->dispatch(new GetSections($namespace));
28+
return $this->dispatchSync(new GetSections($namespace));
2929
}
3030
)
3131
];

0 commit comments

Comments
 (0)