]> git.mxchange.org Git - core.git/blobdiff - inc/main/classes/menu/class_BaseMenu.php
Debugging continued:
[core.git] / inc / main / classes / menu / class_BaseMenu.php
index 7bb97e169a27674ddfb3f9d3c31dc4ac54d75cf3..fb309963cb7be42f42f50e74590187cb67da0db3 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+// Own namespace
+namespace CoreFramework\Menu;
+
+// Import framework stuff
+use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Template\CompileableTemplate;
+
 /**
  * A general menu system class
  *
@@ -63,7 +71,7 @@ class BaseMenu extends BaseFrameworkSystem {
                        $templateInstance->loadMenuTemplate($command . '_menu_entries');
                } catch (FileNotFoundException $e) {
                        // Log exception @TODO Maybe to intrusive?
-                       self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: Exception caught: ' . $e->__toString() . ', with message: ' . $e->getMessage());
+                       self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: Exception caught: ' . $e->__toString() . ', with message: ' . $e->getMessage());
                }
 
                // Render template data here
@@ -83,7 +91,5 @@ class BaseMenu extends BaseFrameworkSystem {
                $templateInstance->assignVariable('menu', $this->getTemplateInstance()->getMenuContent());
                //* DEBUG */ $templateInstance->debugInstance();
        }
-}
 
-// [EOF]
-?>
+}