Zend\XmlRpc\Server::addFunction
Attach a callback as an XMLRPC method
Attaches a callback as an XMLRPC method, prefixing the XMLRPC method name with $namespace, if provided. Reflection is done on the callback's docblock to create the methodHelp for the XMLRPC method. Additional arguments to pass to the function at dispatch may be passed; any arguments following the namespace will be aggregated and passed at dispatch time.
Signature
public function addFunction(string|array|callable
$function,
[string
$namespace = ''] )
Parameters
$function
— object- Valid callback
$namespace
— string- Optional namespace prefix
Returns
- void