first commit

This commit is contained in:
编码猿
2024-09-27 01:06:04 +08:00
commit cbed24c40d
205 changed files with 8732 additions and 0 deletions

33
Swoft_BackEndApi/app/bean.php Executable file
View File

@@ -0,0 +1,33 @@
<?php
use App\Common\DbSelector;
use Swoft\Db\Pool;
use Swoft\Http\Server\HttpServer;
use Swoft\Task\Swoole\TaskListener;
use Swoft\Task\Swoole\FinishListener;
use Swoft\Rpc\Client\Client as ServiceClient;
use Swoft\Rpc\Client\Pool as ServicePool;
use Swoft\Rpc\Server\ServiceServer;
use Swoft\Http\Server\Swoole\RequestListener;
use Swoft\WebSocket\Server\WebSocketServer;
use Swoft\Server\Swoole\SwooleEvent;
use Swoft\Db\Database;
use Swoft\Redis\RedisDb;
return [
'logger' => [
'flushRequest' => true,
'enable' => false,
'json' => false,
],
'httpServer' => [
'class' => HttpServer::class,
'port' => 18306
],
'httpDispatcher' => [
// Add global http middleware
'middlewares' => [
\App\Http\Middleware\CorsMiddleware::class
],
]
];