src/CapableServer.php
public static function enable(\fpoirotte\XRL\Server $server, array $whitelist = null)
    {
        $wrapper = new static($server, $whitelist);
        $server->expose($wrapper, 'system');
        return $server;
    }
public static function enable(\fpoirotte\XRL\Server $server, array $whitelist = null)
    {
        $wrapper = new static($server, $whitelist);
        $server->expose($wrapper, 'system');
        return $server;
    }
Turn a regular XML-RPC server into one
that supports various XML-RPC capabilities.

\param fpoirotte::XRL::Server $server
An XML-RPC to upgrade.

\param array $whitelist
(optional) Whitelist of methods that can
be announced by the newly upgraded server.
Pass an empty array to disable announces.
By default, all methods are announced.

\retval fpoirotte::XRL::Server
The upgraded server.