From 3be21e72c6e69529366c2d6f2b1847bb01716cff Mon Sep 17 00:00:00 2001 From: yf <291323003@qq.com> Date: Sun, 29 Jul 2018 15:47:44 +0800 Subject: [PATCH] up --- src/Swoole/Process/AbstractProcess.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Swoole/Process/AbstractProcess.php b/src/Swoole/Process/AbstractProcess.php index 1467577a..c88f9549 100644 --- a/src/Swoole/Process/AbstractProcess.php +++ b/src/Swoole/Process/AbstractProcess.php @@ -9,7 +9,6 @@ namespace EasySwoole\EasySwoole\Swoole\Process; -use EasySwoole\EasySwoole\ServerManager; use EasySwoole\EasySwoole\Swoole\Time\Time; use Swoole\Process; @@ -20,13 +19,12 @@ abstract class AbstractProcess private $async = null; private $args = []; - function __construct(string $processName,array $args,$async = true) + final function __construct(string $processName,array $args = [],$async = true) { $this->async = $async; $this->args = $args; $this->processName = $processName; $this->swooleProcess = new \swoole_process([$this,'__start'],false,2); - ServerManager::getInstance()->getSwooleServer()->addProcess($this->swooleProcess); } public function getProcess():Process