function replication_client_factory in Replication 8
Same name and namespace in other branches
- 8.2 replication.drush.inc \replication_client_factory()
Returns the CouchDBClient() object.
3 calls to replication_client_factory()
- drush_replication_active in ./
replication.drush.inc - Implements drush_hook_COMMAND().
- drush_replication_start in ./
replication.drush.inc - Implements drush_hook_COMMAND().
- drush_replication_stop in ./
replication.drush.inc - Implements drush_hook_COMMAND().
File
- ./
replication.drush.inc, line 294 - Drush integration for the replication module.
Code
function replication_client_factory($url) {
return CouchDBClient::create([
'url' => (string) $url,
'timeout' => 10,
]);
}