Changeset 4609


Ignore:
Timestamp:
08/29/10 18:32:44 (18 months ago)
Author:
vain
Message:
  • request and response are handed over to the dispatcher and no longer fetched from the dependency injector
Location:
trunk/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/dispatcher.core.php

    r4599 r4609  
    5757     * The dispatcher forwards to the pagecontroller = modulecontroller + moduleaction 
    5858     */ 
    59     public static function forward() 
     59    public static function forward($request, $response) 
    6060    { 
    6161        $route = Clansuite_HttpRequest::getRoute(); 
     
    7878        #unset($route); 
    7979 
    80         $controllerInstance = new $classname( 
    81                         Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpRequest'), 
    82                         Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpResponse') 
    83         ); 
     80        $controllerInstance = new $classname($request, $response); 
    8481 
    8582        # Initialize the Module 
  • trunk/core/frontcontroller.core.php

    r4599 r4609  
    145145        $event->triggerEvent('onBeforeDispatcherForward'); 
    146146 
    147         $this->dispatcher->forward(); 
     147        $this->dispatcher->forward($this->request, $this->response); 
    148148 
    149149        $event->triggerEvent('onAfterDispatcherForward'); 
Note: See TracChangeset for help on using the changeset viewer.