Skip to content

Commit

Permalink
add a new method name to demo server
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 23, 2024
1 parent d8fc0c8 commit 01f3074
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demo/server/methodProviders/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ public static function mailSend($req)
"docstring" => exampleMethods::$bitflipper_doc,
),

// same as examples_getStateName, but with no dot - so that it is easier to map this into a method call
// by clients which map f.e. xmlrpc method names into php object method names
"examples_getStateName" => array(
"function" => array("exampleMethods", "findState"),
"signature" => exampleMethods::$findstate_sig,
"docstring" => exampleMethods::$findstate_doc,
),

// left in as an example, but disabled by default, to avoid this being abused if left on an open server
/*"mail.send" => array(
"function" => array("exampleMethods", "mailSend"),
Expand Down

0 comments on commit 01f3074

Please sign in to comment.