Revision: 45
http://sourceforge.net/p/beeframework/code/45
Author: m_plomer
Date: 2013-07-01 11:39:54 +0000 (Mon, 01 Jul 2013)
Log Message:
-----------
- IScopeAware
Modified Paths:
--------------
trunk/framework/Bee/MVC/Dispatcher.php
Modified: trunk/framework/Bee/MVC/Dispatcher.php
===================================================================
--- trunk/framework/Bee/MVC/Dispatcher.php 2013-07-01 11:25:52 UTC (rev 44)
+++ trunk/framework/Bee/MVC/Dispatcher.php 2013-07-01 11:39:54 UTC (rev 45)
@@ -59,7 +59,7 @@
/**
* @var Bee_MVC_IHttpRequest
*/
- private static $currentRequest;
+ private static $currentRequest = null;
/**
* The root context used by this dispatcher
@@ -111,6 +111,10 @@
* @return Bee_MVC_IHttpRequest
*/
public static function getCurrentRequest() {
+ if(is_null(self::$currentRequest)) {
+ throw new Bee_Exceptions_Base('No request object constructed yet');
+ }
+
return self::$currentRequest;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|