RemotingServer Class Reference
Detailed Description
RemotingServer is used to communicate with other wCMF instances.
The url and login credentials of a remote instance are configured using the configuration sections RemoteServer and RemoteUser. Each remote instance is identified by a unique server key. The following example configures ServerKeyA over http and ServerKeyB over command line:
[remoteserver]
ServerKeyA = http://localhost/wcmfA
ServerKeyB = /path/to/wcmfB/main.php
[remoteuser]
ServerKeyA = {loginA, passwordA}
ServerKeyB = {loginB, passwordB}
[system]
php = /path/to/php-cli
Definition at line 40 of file RemotingServer.php.
Public Member Functions | |
doCall ($serverKey, $request) | |
Member Function Documentation
doCall | ( | $serverKey, | |
$request | |||
) |
Send a request to the server identified by serverKey.
- Parameters
-
$serverKey An entry in the configuration section 'remoteserver' $request A Request instance
- Returns
- A Response instance
Definition at line 51 of file RemotingServer.php.