This commit is contained in:
2021-10-26 10:41:11 +08:00
parent 90b22a14e0
commit 0d624f8a1f
3 changed files with 0 additions and 29 deletions
@@ -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;
}
-3
View File
@@ -49,9 +49,6 @@ class Server extends HttpService
public EventDispatch $eventDispatch;
/**
*
*/
-8
View File
@@ -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)) {