Revision: 149
http://sourceforge.net/p/beeframework/code/149
Author: m_plomer
Date: 2014-04-11 13:02:04 +0000 (Fri, 11 Apr 2014)
Log Message:
-----------
- moved construction of current Request object from dispatch to init phase
Modified Paths:
--------------
trunk/framework/Bee/MVC/Dispatcher.php
Modified: trunk/framework/Bee/MVC/Dispatcher.php
===================================================================
--- trunk/framework/Bee/MVC/Dispatcher.php 2014-03-06 16:26:30 UTC (rev 148)
+++ trunk/framework/Bee/MVC/Dispatcher.php 2014-04-11 13:02:04 UTC (rev 149)
@@ -180,6 +180,7 @@
* @return void
*/
protected function init() {
+ self::$currentRequest = $this->buildRequestObject();
$this->handlerMapping = $this->context->getBean(self::HANDLER_MAPPING_BEAN_NAME, 'Bee_MVC_IHandlerMapping');
$this->viewResolver = $this->context->getBean(self::VIEW_RESOLVER_BEAN_NAME, 'Bee_MVC_IViewResolver');
@@ -224,7 +225,7 @@
*/
public function dispatch() {
self::$currentDispatcher = $this;
- self::$currentRequest = $this->buildRequestObject();
+// self::$currentRequest = $this->buildRequestObject();
if (!is_null($this->filterChainProxy)) {
$this->filterChainProxy->doFilter(self::$currentRequest, $this);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|