Ignore:
Timestamp:
08/15/10 18:45:12 (22 months ago)
Author:
vain
Message:
  • several changes to copyright, router, bootstrap, frontcontroller and various other files
File:
1 edited

Legend:

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

    r4526 r4578  
    2424    * 
    2525    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    26     * 
    2726    * @author     Jens-André Koch <vain@clansuite.com> 
    2827    * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    5249{ 
    5350    public function __construct(Clansuite_Request_Interface $request, Clansuite_Response_Interface $response); 
    54     public function processRequest(Clansuite_Router_Interface $router); 
     51    public function processRequest(); 
    5552    public function addPreFilter(Clansuite_Filter_Interface $filter); 
    5653    public function addPostFilter(Clansuite_Filter_Interface $filter); 
     
    105102           $this->request            = $request; 
    106103           $this->response           = $response; 
    107            $this->dispatcher         = new Clansuite_Dispatcher(); 
     104           $this->dispatcher         = new Clansuite_Dispatcher($request); 
    108105           $this->pre_filtermanager  = new Clansuite_Filtermanager(); 
    109106           $this->post_filtermanager = new Clansuite_Filtermanager(); 
     
    111108 
    112109    /** 
    113      * Method to add a Prefilter 
    114      * Filter is processed before Controller->Action is executed 
     110     * Add a Prefilter 
     111     * 
     112     * This filter is processed *before* the Controller->Action is executed. 
     113     * 
     114     * @param object $filter Object implementing the Clansuite_Filter_Interface. 
    115115     */ 
    116116    public function addPreFilter(Clansuite_Filter_Interface $filter) 
     
    120120 
    121121    /** 
    122      * Method to add a Postfilter 
    123      * Filter is processed after Controller->Action was executed 
     122     * Add a Postfilter 
     123     * 
     124     * This filter is processed *after* Controller->Action was executed. 
     125     * 
     126     * @param object $filter Object implementing the Clansuite_Filter_Interface. 
    124127     */ 
    125128    public function addPostFilter(Clansuite_Filter_Interface $filter) 
     
    135138     * Calls/executes the apropriate controller and returns a response. 
    136139     */ 
    137     public function processRequest(Clansuite_Router_Interface $router) 
     140    public function processRequest() 
    138141    { 
    139         $route = $router->route(); 
    140142        $this->pre_filtermanager->processFilters($this->request, $this->response); 
     143 
    141144        $event = Clansuite_EventDispatcher::instantiate(); 
    142145        $event->triggerEvent('onBeforeDispatcherForward'); 
    143         $this->dispatcher->setFoundRoute($route)->forward(); 
     146 
     147        $this->dispatcher->forward(); 
     148 
    144149        $event->triggerEvent('onAfterDispatcherForward'); 
     150 
    145151        $this->post_filtermanager->processFilters($this->request, $this->response); 
     152 
    146153        $this->response->sendResponse(); 
    147154    } 
Note: See TracChangeset for help on using the changeset viewer.