From 8f801eee2802ad4290c04de0597dcfa69ef67f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 16 Apr 2021 15:15:54 +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 --- Annotation/LocalService.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Annotation/LocalService.php b/Annotation/LocalService.php index 37336eef..984d792d 100644 --- a/Annotation/LocalService.php +++ b/Annotation/LocalService.php @@ -24,7 +24,6 @@ use Snowflake\Snowflake; */ public function __construct(public string $service, public array $args = [], public bool $async_reload = true) { - var_dump($this->service); } @@ -40,12 +39,11 @@ use Snowflake\Snowflake; $class = array_merge($class, $this->args); } - var_dump($this->service, $class); Snowflake::set($this->service, $class); - if ($this->async_reload === true) { - $event = Snowflake::app()->getEvent(); - $event->on(Event::SERVER_WORKER_EXIT, [$this, 'clear']); - } +// if ($this->async_reload === true) { +// $event = Snowflake::app()->getEvent(); +// $event->on(Event::SERVER_WORKER_EXIT, [$this, 'clear']); +// } return parent::execute($handler); // TODO: Change the autogenerated stub }