File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ];
You can’t perform that action at this time.
0 commit comments