From a82a214efc07bdb4c56af538cd2cc72928a04d1f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 1 Mar 2021 00:37:16 +0800 Subject: [PATCH] modify --- System/Process/ServerInotify.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index e4b1b30d..8ac5c1c8 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -44,16 +44,13 @@ class ServerInotify extends Process $this->inotify = inotify_init(); $this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE; - var_dump($this->dirs); - - foreach ($this->dirs as $dir) { $this->watch($dir); } Event::add($this->inotify, [$this, 'check']); Event::wait(); } else { - $this->loadByDir(APP_PATH . 'app'); + $this->loadByDir(APP_PATH . 'app'); $this->loadByDir(APP_PATH . 'routes'); $this->loadByDir(__DIR__ . '/../../'); @@ -212,6 +209,7 @@ class ServerInotify extends Process */ public function trigger_reload() { + var_dump('trigger_reload'); Snowflake::reload(); }