]> git.mxchange.org Git - qa.git/blobdiff - application/qa/class_ApplicationHelper.php
NULL for syntax-highlightning
[qa.git] / application / qa / class_ApplicationHelper.php
index 2795bbdbafd6ceae7af8b58cc5c0ef0ce0598aaf..ae7decd79b6fc00469439f8db70c754d29b2d40f 100644 (file)
@@ -58,12 +58,12 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
        /**
         * An instance of a controller
         */
-       private $controllerInstance = null;
+       private $controllerInstance = NULL;
 
        /**
         * An instance of this class
         */
-       private static $thisInstance = null;
+       private static $thisInstance = NULL;
 
        /**
         * Protected constructor
@@ -84,7 +84,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                // Is the instance there?
                if (is_null(self::$thisInstance)) {
                        self::$thisInstance = new ApplicationHelper();
-               }
+               } // END - if
 
                // Return the instance
                return self::$thisInstance;
@@ -172,6 +172,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
         * @return      void
         */
        public final function entryPoint () {
+               // Set this application in registry
+               Registry::getRegistry()->addInstance('app', $this);
+
                // Create a new request object
                $requestInstance = ObjectFactory::createObjectByName('HttpRequest');