This commit is contained in:
as2252258@163.com
2021-08-11 01:04:57 +08:00
parent 63d8eaa4a5
commit 682246df28
219 changed files with 790 additions and 791 deletions
+4 -4
View File
@@ -5,8 +5,8 @@ namespace Annotation;
use Exception;
use Snowflake\Event;
use Snowflake\Snowflake;
use Kiri\Event;
use Kiri\Kiri;
/**
* Class LocalService
@@ -29,7 +29,7 @@ use Snowflake\Snowflake;
return;
}
Event::on(Event::SERVER_WORKER_EXIT, function () {
Snowflake::app()->remove($this->service);
Kiri::app()->remove($this->service);
});
}
@@ -47,7 +47,7 @@ use Snowflake\Snowflake;
$class = array_merge($class, $this->args);
}
Snowflake::set($this->service, $class);
Kiri::set($this->service, $class);
return true; // TODO: Change the autogenerated stub
}