first commit
This commit is contained in:
33
Swoft_BackEndApi/app/bean.php
Executable file
33
Swoft_BackEndApi/app/bean.php
Executable 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
|
||||
],
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user