https://src.bluestatic.org
/
hoplite.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e64e4f
)
Make RootControllerDelegate::OnInitialRequest also send the response
author
Robert Sesek <rsesek@bluestatic.org>
Mon, 8 Aug 2011 02:47:20 +0000
(22:47 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Mon, 8 Aug 2011 02:47:36 +0000
(22:47 -0400)
http/root_controller.php
patch
|
blob
|
history
diff --git
a/http/root_controller.php
b/http/root_controller.php
index b4b87bbab60644d3a353f34a21dba10dde8fbdfe..4a0832f271c6cf71f2b00b96f6aa65cba36a3c9c 100644
(file)
--- a/
http/root_controller.php
+++ b/
http/root_controller.php
@@
-104,7
+104,7
@@
class RootController
$this->request->url = $url;
$this->request->http_method = $this->request->data['_SERVER']['REQUEST_METHOD'];
$this->request->url = $url;
$this->request->http_method = $this->request->data['_SERVER']['REQUEST_METHOD'];
- $this->delegate->OnInitialRequest($this->request);
+ $this->delegate->OnInitialRequest($this->request
, $this->response
);
// Dispatch the request to an Action.
$this->RouteRequest($this->request);
// Dispatch the request to an Action.
$this->RouteRequest($this->request);
@@
-193,7
+193,7
@@
class RootController
*/
interface RootControllerDelegate
{
*/
interface RootControllerDelegate
{
- public function OnInitialRequest(Request $request);
+ public function OnInitialRequest(Request $request
, Response $response
);
public function WillRouteRequest(Request $request, Response $response);
public function WillRouteRequest(Request $request, Response $response);