改名
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Server\SInterface;
|
||||
|
||||
use Swoole\Http\Request;
|
||||
use Swoole\Http\Response;
|
||||
|
||||
interface OnRequestInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param Response $response
|
||||
*/
|
||||
public function onRequest(Request $request, Response $response): void;
|
||||
|
||||
}
|
||||
@@ -49,9 +49,6 @@ class Server extends HttpService
|
||||
public EventDispatch $eventDispatch;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -46,11 +46,6 @@ class ServerCommand extends Command
|
||||
public EventProvider $eventProvider;
|
||||
|
||||
|
||||
/** @var ContainerInterface */
|
||||
#[Inject(ContainerInterface::class)]
|
||||
public ContainerInterface $container;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -72,9 +67,6 @@ class ServerCommand extends Command
|
||||
public function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
try {
|
||||
$this->container->mapping(RequestInterface::class, Request::class);
|
||||
$this->container->mapping(ResponseInterface::class, Response::class);
|
||||
|
||||
$manager = Kiri::app()->getServer();
|
||||
$manager->setDaemon((int)is_null($input->getOption('daemon')));
|
||||
if (!in_array($input->getArgument('action'), self::ACTIONS)) {
|
||||
|
||||
Reference in New Issue
Block a user