qqq
This commit is contained in:
+1
-5
@@ -21,12 +21,8 @@ class Client
|
|||||||
* @param bool $isSsl
|
* @param bool $isSsl
|
||||||
* @param bool $useCurl
|
* @param bool $useCurl
|
||||||
*/
|
*/
|
||||||
public function __construct(string $host, int $port, bool $isSsl = false, bool $useCurl = false)
|
public function __construct(string $host, int $port, bool $isSsl = false)
|
||||||
{
|
{
|
||||||
if ($useCurl) {
|
|
||||||
$this->abstracts = new CurlClient($host, $port, $isSsl);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (class_exists(Coroutine::class) && Coroutine::getCid() > -1) {
|
if (class_exists(Coroutine::class) && Coroutine::getCid() > -1) {
|
||||||
$this->abstracts = new CoroutineClient($host, $port, $isSsl);
|
$this->abstracts = new CoroutineClient($host, $port, $isSsl);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user