Set application instance first (to prevent a NPE in BaseRegistry)
[mailer.git] / 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');