]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/commands/web/class_WebRegisterCommand.php
Menu classes added, unfinished
[core.git] / inc / classes / main / commands / web / class_WebRegisterCommand.php
index b8c858e5cd12b418e34f29b1c5fc8242fb12d030..d72a3acd885cbb9e488aabf8eef49e2d77591497 100644 (file)
@@ -102,6 +102,10 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl
                // Set title
                $templateInstance->assignVariable('title', $this->getLanguageInstance()->getMessage('page_register_title'));
 
+               // Construct the menu in every command. We could do this in BaseCommand class. But this means
+               // *every* command has a navigation system and that is want we don't want.
+               $menuInstance = ObjectFactory::createObjectByConfiguredName('register_menu_class', array($appInstance));
+
                // ... and all variables. This should be merged together in a pattern
                // to make things easier. A cache mechanism should be added between
                // these two calls to cache compiled templates.