Set application instance first (to prevent a NPE in BaseRegistry)
authorRoland Häder <roland@mxchange.org>
Tue, 22 Mar 2011 21:13:14 +0000 (21:13 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 22 Mar 2011 21:13:14 +0000 (21:13 +0000)
application/mailer/class_ApplicationHelper.php

index 33864e8..386ad25 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');