projects
/
qa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877d1a4
)
Set application instance first (to prevent a NPE in BaseRegistry)
author
Roland Häder
<roland@mxchange.org>
Tue, 22 Mar 2011 21:13:47 +0000
(21:13 +0000)
committer
Roland Häder
<roland@mxchange.org>
Tue, 22 Mar 2011 21:13:47 +0000
(21:13 +0000)
application/qa/class_ApplicationHelper.php
patch
|
blob
|
history
diff --git
a/application/qa/class_ApplicationHelper.php
b/application/qa/class_ApplicationHelper.php
index 2795bbdbafd6ceae7af8b58cc5c0ef0ce0598aaf..41dfb5bc2092a776d1dd2ba92d70bbddd93fe56a 100644
(file)
--- a/
application/qa/class_ApplicationHelper.php
+++ b/
application/qa/class_ApplicationHelper.php
@@
-84,7
+84,7
@@
class ApplicationHelper extends BaseApplication implements ManageableApplication
// Is the instance there?
if (is_null(self::$thisInstance)) {
self::$thisInstance = new ApplicationHelper();
- }
+ }
// END - if
// Return the instance
return self::$thisInstance;
@@
-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');