]> git.mxchange.org Git - shipsimu.git/blobdiff - application/selector/class_ApplicationHelper.php
Set application instance first (to prevent a NPE in BaseRegistry)
[shipsimu.git] / application / selector / class_ApplicationHelper.php
index e5e30e5102f25808c80823ea3a73409ea57c860e..621426a07b62cc60f4fddb4c048da208d87b5074 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');