From 02c6dd37d721fc3d857b1f7a1e84de7a46a78c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 20 Jul 2021 11:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Server.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/HttpServer/Server.php b/HttpServer/Server.php index a066f1e5..973bce6f 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -33,8 +33,8 @@ class Server extends HttpService { private array $process = [ - 'biomonitoring' => Biomonitoring::class, - 'logger_process' => LoggerProcess::class + Biomonitoring::class, + LoggerProcess::class ]; @@ -50,14 +50,12 @@ class Server extends HttpService } - /** - * @param $name - * @param $process - * @param array $params - */ + /** + * @param $process + */ public function addProcess($process) { - $this->manager->addProcess($process); + $this->process[] = $process; }