Chmpx::createServer Chmpx Class Chmpx::destroy

Chmpx::createSlave

Creates a ChmpxSlave instance

Description

public function createSlave(string $filepath, bool $is_auto_rejoin = false): bool

Creates a ChmpxSlave instance.

Parameters

Return Values

Returns true on success or false on failure.

Examples

php -r '$chmpx = new Chmpx(); var_dump($chmpx->createSlave("./tests/slave.yaml", true));' 

The above example will output:

bool(true)

See Also

Chmpx::createServer Chmpx Class Chmpx::destroy