]> git.mxchange.org Git - mailer.git/commitdiff
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 33864e8add4d5a3ff43eec403f53b5a18c57a639..386ad253841e05166aa2091ddf719cd7d5809c54 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');