mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
Add PHP CS Fixer configuration (.php-cs-fixer.php) to enforce coding style and apply corresponding updates across the codebase. Numerous plugins (think-library and many think-plugs-*) and core config files (cache, database, phinx, worker) were updated along with controllers, services, models, storage adapters, helpers and tests to conform to style fixes and minor compatibility/refactors.
53 lines
1.8 KiB
PHP
53 lines
1.8 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
/**
|
||
* +----------------------------------------------------------------------
|
||
* | Payment Plugin for ThinkAdmin
|
||
* +----------------------------------------------------------------------
|
||
* | 版权所有 2014~2026 ThinkAdmin [ thinkadmin.top ]
|
||
* +----------------------------------------------------------------------
|
||
* | 官方网站: https://thinkadmin.top
|
||
* +----------------------------------------------------------------------
|
||
* | 开源协议 ( https://mit-license.org )
|
||
* | 免责声明 ( https://thinkadmin.top/disclaimer )
|
||
* | 会员特权 ( https://thinkadmin.top/vip-introduce )
|
||
* +----------------------------------------------------------------------
|
||
* | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
|
||
* | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
|
||
* +----------------------------------------------------------------------
|
||
*/
|
||
return [
|
||
// 服务监听地址
|
||
'host' => '127.0.0.1',
|
||
// 服务监听端口
|
||
'port' => 2346,
|
||
// 套接字上下文选项
|
||
'context' => [],
|
||
// 高级自定义服务类
|
||
'classes' => '',
|
||
// 消息请求回调处理
|
||
'callable' => null,
|
||
// 服务进程参数配置
|
||
'worker' => [
|
||
'name' => 'ThinkAdmin',
|
||
'count' => 4,
|
||
],
|
||
// 监控文件变更重载,仅 Debug 模式有效
|
||
'files' => [
|
||
// 监控检测间隔(单位秒,零不监控)
|
||
'time' => 3,
|
||
// 文件监控目录(默认监控 app+config 目录)
|
||
'path' => [],
|
||
// 文件监控后缀(默认监控 所有 文件)
|
||
'exts' => ['*'],
|
||
],
|
||
// 监控内存超限重载,仅 Debug 模式有效
|
||
'memory' => [
|
||
// 监控检测间隔(单位秒,零不监控)
|
||
'time' => 60,
|
||
// 限制内存大小(可选单位有 G M K )
|
||
'limit' => '1G',
|
||
],
|
||
];
|