From 21cc21e0e73efbda66978f41bea1e37533dfbd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 17:32:32 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HttpServer/Server.php b/HttpServer/Server.php index 549fff1e..2444fdfb 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -185,9 +185,12 @@ class Server extends Application $application = Snowflake::app(); foreach ($processes as $name => $process) { $this->debug(sprintf('Process %s', $process)); + if (!is_string($process)) { + continue; + } $system = new $process(Snowflake::app(), $name); $this->baseServer->addProcess($system); - $application->set(get_class($process), $system); + $application->set($process, $system); } }