Make RootControllerDelegate::OnInitialRequest also send the response
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 8 Aug 2011 02:47:20 +0000 (22:47 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 8 Aug 2011 02:47:36 +0000 (22:47 -0400)
http/root_controller.php

index b4b87bbab60644d3a353f34a21dba10dde8fbdfe..4a0832f271c6cf71f2b00b96f6aa65cba36a3c9c 100644 (file)
@@ -104,7 +104,7 @@ class RootController
     $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);
@@ -193,7 +193,7 @@ class RootController
 */
 interface RootControllerDelegate
 {
-  public function OnInitialRequest(Request $request);
+  public function OnInitialRequest(Request $request, Response $response);
 
   public function WillRouteRequest(Request $request, Response $response);