modify plugin name
This commit is contained in:
@@ -91,7 +91,7 @@ class AsyncServer implements ServerInterface
|
||||
/**
|
||||
* @return void
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
* @throws NotFoundExceptionInterface|ReflectionException
|
||||
*/
|
||||
public function shutdown(): void
|
||||
{
|
||||
|
||||
@@ -16,13 +16,17 @@ trait TraitServer
|
||||
|
||||
|
||||
/**
|
||||
* @param array $class
|
||||
* @param string|array $class
|
||||
* @return void
|
||||
*/
|
||||
public function addProcess(array $class): void
|
||||
public function addProcess(string|array $class): void
|
||||
{
|
||||
foreach ($class as $item) {
|
||||
$this->_process[] = $item;
|
||||
if (is_string($class)) {
|
||||
$this->_process[] = $class;
|
||||
} else {
|
||||
foreach ($class as $name) {
|
||||
$this->_process[] = $name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -175,7 +175,7 @@ class Server extends HttpService
|
||||
$reload = Config::get('reload.hot', false);
|
||||
if ($reload !== false) {
|
||||
$this->provider->on(OnWorkerStart::class, [$this, 'LoadRoutingList']);
|
||||
$this->processManager->add(Scaner::class);
|
||||
$this->manager->addProcess(Scaner::class);
|
||||
} else {
|
||||
$this->LoadRoutingList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user