[Sungrazr-svn] [103] Sungrazr_Server_Adapter_JsonRpc: [CHG] Pass the Request object on to the handler

0 views
Skip to first unread message

cl...@killersoft.com

unread,
Dec 20, 2007, 3:18:20 PM12/20/07
to Sungra...@googlegroups.com
Revision
103
Author
clay
Date
2007-12-20 12:18:19 -0800 (Thu, 20 Dec 2007)

Log Message

Sungrazr_Server_Adapter_JsonRpc: [CHG] Pass the Request object on to the handler

Modified Paths

Diff

Modified: trunk/Sungrazr/Server/Adapter/JsonRpc.php (102 => 103)


--- trunk/Sungrazr/Server/Adapter/JsonRpc.php	2007-12-20 20:17:16 UTC (rev 102)
+++ trunk/Sungrazr/Server/Adapter/JsonRpc.php	2007-12-20 20:18:19 UTC (rev 103)
@@ -105,7 +105,10 @@
         // call the handler object + method
         $callback = $this->_server_api[$this->method]['callback'];
         $obj = Solar::factory($callback[0], 
-            array('caller' => $this)
+            array(
+                'caller' => $this,
+                'request' => $request
+            )
         );
         $this->result = call_user_func_array(
             array($obj, $callback[1]),

Modified: trunk/Sungrazr/Server/Adapter/Rest.php (102 => 103)


--- trunk/Sungrazr/Server/Adapter/Rest.php	2007-12-20 20:17:16 UTC (rev 102)
+++ trunk/Sungrazr/Server/Adapter/Rest.php	2007-12-20 20:18:19 UTC (rev 103)
@@ -28,7 +28,7 @@
      * @return mixed
      * 
      */    
-    public function handle($request = false)
+    public function handle(Solar_Request $request)
     {
         
     }

Modified: trunk/Sungrazr/Server/Adapter/XmlRpc.php (102 => 103)


--- trunk/Sungrazr/Server/Adapter/XmlRpc.php	2007-12-20 20:17:16 UTC (rev 102)
+++ trunk/Sungrazr/Server/Adapter/XmlRpc.php	2007-12-20 20:18:19 UTC (rev 103)
@@ -28,7 +28,7 @@
      * @return mixed
      * 
      */    
-    public function handle($request = false)
+    public function handle(Solar_Request $request)
     {
         
     }
Reply all
Reply to author
Forward
0 new messages