lisq / yii2-s
此包最新版本(dev-master)没有可用的许可信息。
使用Yii2支持swoole
dev-master / 1.0.x-dev
2020-12-01 09:30 UTC
Requires
- php: ^7.0
- yiisoft/yii2: ^2.0.13
This package is auto-updated.
Last update: 2024-09-29 05:43:02 UTC
README
此项目正在开发中
$ compose require lisq/yii2-s $ yii s/{start|reload|restart|stop|status}
'errorHandler' => [ 'class' => \lisq\s\hook\web\SErrorHandler::class, 'silentExitOnException' => true, ], 'serverManager' => [ 'class' => \lisq\s\server\ServerManager::class, 'inotifyReload' => [ 'enable' => true, 'watch_path' => dirname(dirname(__DIR__)), 'file_types' => ['.php'], 'excluded_dirs' => [], 'log' => true, ], 'websocket' => [ 'enable' => true, 'handler' => '' ], 'timer' => [ 'enable' => true, 'jobs' => [ // 'xxxClass' //['xxxClass',[args...]] ] ], 'processes' => [], 'httpServer' => [ 'frontend' => [ 'path' => dirname(dirname(__DIR__)) . '/frontend', 'port' => 8998, 'address' => '127.0.0.1', 'dependentServer' => \lisq\s\server\SwooleServer::class, ], 'backend' => [ 'path' => dirname(dirname(__DIR__)) . '/backend', 'port' => 8998, 'address' => '127.0.0.1', 'dependentServer' => \lisq\s\server\SwooleServer::class, ] ], ],