diff --git a/kiri-process/OnProcessInterface.php b/kiri-process/OnProcessInterface.php deleted file mode 100644 index c03a625a..00000000 --- a/kiri-process/OnProcessInterface.php +++ /dev/null @@ -1,10 +0,0 @@ -process; - } - - /** - * @return mixed - */ - public function getRedirectStdinAndStdout(): mixed - { - return $this->redirect_stdin_and_stdout; - } - - /** - * @return int - */ - public function getPipeType(): int - { - return $this->pipe_type; - } - - /** - * @return bool - */ - public function isEnableCoroutine(): bool - { - return $this->enable_coroutine; - } - - /** - * @return string - */ - public function getName(): string - { - return $this->name; - } - - - /** - * @param \Swoole\Process $process - */ - public function start(\Swoole\Process $process) - { - $this->process = $process; - } - - -} diff --git a/kiri-process/TestProcess.php b/kiri-process/TestProcess.php deleted file mode 100644 index 7b3abd49..00000000 --- a/kiri-process/TestProcess.php +++ /dev/null @@ -1,52 +0,0 @@ -getRedirectStdinAndStdout(), - $class->getPipeType(), $class->isEnableCoroutine()); - $process->start(); - - array_push($array, $process); -} -run(function () use ($array) { - - foreach ($array as $value) { - var_dump($value->getCallback()); - } - -});