变更
This commit is contained in:
@@ -91,7 +91,7 @@ class AsyncServer implements ServerInterface
|
|||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
* @throws NotFoundExceptionInterface|ReflectionException
|
* @throws NotFoundExceptionInterface
|
||||||
*/
|
*/
|
||||||
public function shutdown(): bool
|
public function shutdown(): bool
|
||||||
{
|
{
|
||||||
@@ -254,7 +254,6 @@ class AsyncServer implements ServerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
* @throws NotFoundExceptionInterface
|
* @throws NotFoundExceptionInterface
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
*/
|
||||||
public function start(): void
|
public function start(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ trait TraitServer
|
|||||||
|
|
||||||
|
|
||||||
private array $_process = [];
|
private array $_process = [];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|array $class
|
* @param string|array|BaseProcess $class
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function addProcess(string|array $class): void
|
public function addProcess(string|array|BaseProcess $class): void
|
||||||
{
|
{
|
||||||
if (is_string($class)) {
|
if (is_string($class)) {
|
||||||
$this->_process[] = $class;
|
$this->_process[] = $class;
|
||||||
|
|||||||
Reference in New Issue
Block a user