Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Jul 29, 2018
1 parent d49c0e0 commit 3be21e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Swoole/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace EasySwoole\EasySwoole\Swoole\Process;


use EasySwoole\EasySwoole\ServerManager;
use EasySwoole\EasySwoole\Swoole\Time\Time;
use Swoole\Process;

Expand All @@ -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
Expand Down

0 comments on commit 3be21e7

Please sign in to comment.