Changeset 4578 for trunk/core/frontcontroller.core.php
- Timestamp:
- 08/15/10 18:45:12 (22 months ago)
- File:
-
- 1 edited
-
trunk/core/frontcontroller.core.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/frontcontroller.core.php
r4526 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 52 49 { 53 50 public function __construct(Clansuite_Request_Interface $request, Clansuite_Response_Interface $response); 54 public function processRequest( Clansuite_Router_Interface $router);51 public function processRequest(); 55 52 public function addPreFilter(Clansuite_Filter_Interface $filter); 56 53 public function addPostFilter(Clansuite_Filter_Interface $filter); … … 105 102 $this->request = $request; 106 103 $this->response = $response; 107 $this->dispatcher = new Clansuite_Dispatcher( );104 $this->dispatcher = new Clansuite_Dispatcher($request); 108 105 $this->pre_filtermanager = new Clansuite_Filtermanager(); 109 106 $this->post_filtermanager = new Clansuite_Filtermanager(); … … 111 108 112 109 /** 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. 115 115 */ 116 116 public function addPreFilter(Clansuite_Filter_Interface $filter) … … 120 120 121 121 /** 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. 124 127 */ 125 128 public function addPostFilter(Clansuite_Filter_Interface $filter) … … 135 138 * Calls/executes the apropriate controller and returns a response. 136 139 */ 137 public function processRequest( Clansuite_Router_Interface $router)140 public function processRequest() 138 141 { 139 $route = $router->route();140 142 $this->pre_filtermanager->processFilters($this->request, $this->response); 143 141 144 $event = Clansuite_EventDispatcher::instantiate(); 142 145 $event->triggerEvent('onBeforeDispatcherForward'); 143 $this->dispatcher->setFoundRoute($route)->forward(); 146 147 $this->dispatcher->forward(); 148 144 149 $event->triggerEvent('onAfterDispatcherForward'); 150 145 151 $this->post_filtermanager->processFilters($this->request, $this->response); 152 146 153 $this->response->sendResponse(); 147 154 }
Note: See TracChangeset
for help on using the changeset viewer.
