From 01f3074a3a19ec5ac260cb2465deb17fb1e79b5a Mon Sep 17 00:00:00 2001
From: gggeek <giunta.gaetano@gmail.com>
Date: Tue, 23 Apr 2024 12:36:56 +0000
Subject: [PATCH] add a new method name to demo server

---
 demo/server/methodProviders/functions.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/demo/server/methodProviders/functions.php b/demo/server/methodProviders/functions.php
index 045574d6..cb084c42 100644
--- a/demo/server/methodProviders/functions.php
+++ b/demo/server/methodProviders/functions.php
@@ -309,6 +309,14 @@ return array(
         "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"),
-- 
2.47.0