111
This commit is contained in:
@@ -28,7 +28,7 @@ use Kiri\Jwt\Jwt;
|
||||
use Kiri\Kiri;
|
||||
use ReflectionException;
|
||||
use Server\ServerManager;
|
||||
use Server\SInterface\TaskExecute;
|
||||
use Server\SInterface\OnTaskInterface;
|
||||
use Swoole\Table;
|
||||
|
||||
/**
|
||||
@@ -205,10 +205,10 @@ abstract class BaseApplication extends Component
|
||||
|
||||
|
||||
/**
|
||||
* @param TaskExecute $execute
|
||||
* @param OnTaskInterface $execute
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function task(TaskExecute $execute): void
|
||||
public function task(OnTaskInterface $execute): void
|
||||
{
|
||||
di(ServerManager::class)->task($execute);
|
||||
}
|
||||
|
||||
@@ -11,13 +11,13 @@ use Kiri\Exception\ComponentException;
|
||||
use Kiri\Kiri;
|
||||
use Swoole\Coroutine;
|
||||
use Swoole\Process;
|
||||
use Server\Abstracts\CustomProcess;
|
||||
use Server\Abstracts\OnProcessInterface;
|
||||
|
||||
/**
|
||||
* Class LoggerProcess
|
||||
* @package Kiri\Error
|
||||
*/
|
||||
class LoggerProcess extends CustomProcess
|
||||
class LoggerProcess extends OnProcessInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ class Event extends BaseObject
|
||||
const SERVER_ON_CLOSE = 'Close';
|
||||
const SERVER_ON_TASK = 'Task';
|
||||
const SERVER_ON_FINISH = 'Finish';
|
||||
const SERVER_ON_PIPE_MESSAGE = 'PipeMessage';
|
||||
const SERVER_ON_PIPE_MESSAGE = 'OnPipeMessageInterface';
|
||||
const SERVER_ON_WORKER_ERROR = 'WorkerError';
|
||||
const SERVER_ON_MANAGER_START = 'ManagerStart';
|
||||
const SERVER_ON_MANAGER_STOP = 'ManagerStop';
|
||||
|
||||
@@ -6,14 +6,14 @@ use Exception;
|
||||
use Kiri\Abstracts\Config;
|
||||
use Kiri\Kiri;
|
||||
use ReflectionException;
|
||||
use Server\Abstracts\CustomProcess;
|
||||
use Server\Abstracts\OnProcessInterface;
|
||||
use Swoole\Process;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class FileChangeCustomProcess extends CustomProcess
|
||||
class FileChangeCustomProcess extends OnProcessInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user