Prado\Web\Services\TRpcApiProvider::__construct PHP Method

__construct() public method

Constructor: informs the rpc server of the registered methods
public __construct ( TRpcServer $rpcServer )
$rpcServer TRpcServer
    public function __construct(TRpcServer $rpcServer)
    {
        $this->rpcServer = $rpcServer;
        foreach ($this->registerMethods() as $_methodName => $_methodDetails) {
            $this->rpcServer->addRpcMethod($_methodName, $_methodDetails);
        }
    }