Closed Moln closed 10 months ago
I will try use it combine swoole for connect multiple replications. Let's Config static properties to non-static will be better.
Config
$config = (new ConfigBuilder()) ->withUser('root') ->withHost('192.168.1.10') ->withPort(3306) ->withPassword('123456') ->build(); $config2 = (new ConfigBuilder()) ->withUser('root') ->withHost('192.168.1.11') ->withPort(3306) ->withPassword('123456') ->build(); var_dump($config->getHost()); //192.168.1.11
Expected Result.
Output: 192.168.1.10
192.168.1.10
Actual Result.
Output: 192.168.1.11
192.168.1.11
Hi, I can change this but I think you will unable to run consume in one php process.
done in #104
I will try use it combine swoole for connect multiple replications. Let's
Config
static properties to non-static will be better.Output:
192.168.1.10
Output:
192.168.1.11