Zend\Server\Server::setClass
Attach a class to a server
The individual implementations should probably allow passing a variable number of arguments in, so that developers may define custom runtime arguments to pass to server methods. Namespacing is primarily for xmlrpc, but could be used for other implementations as well.
Signature
public function setClass(mixed
$class,
[string
$namespace = '',
[
$argv = null]] )
Parameters
$class
— mixed- Class name or object instance to examine and attach
to the server. $namespace
— string- Optional namespace with which to prepend method
names in the dispatch table.
methods in the class will be valid callbacks. $argv
—
Returns
- void