]> git.mxchange.org Git - admin.git/commitdiff
Set application instance first (to prevent a NPE in BaseRegistry)
authorRoland Häder <roland@mxchange.org>
Tue, 22 Mar 2011 21:10:45 +0000 (21:10 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 22 Mar 2011 21:10:45 +0000 (21:10 +0000)
application/admin/class_ApplicationHelper.php

index 3b1e01eea951c178c0531cf23b4de7d199d2b92b..0f28bd69b73973ccaee12cde0f9c7f77b89fa8ec 100644 (file)
@@ -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');