Files
im/config/process.php
T

47 lines
1.4 KiB
PHP
Raw Normal View History

2025-11-07 09:56:20 +08:00
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
global $argv;
return [
// File update detection and automatic reload
'monitor' => [
'handler' => process\Monitor::class,
'reloadable' => true,
'constructor' => [
// 监控这些目录
'monitor_dir' => [
app_path(),
config_path(),
base_path() . '/process',
base_path() . '/plugin/admin/app/controller',
base_path() . '/plugin/admin/app/view',
base_path() . '/plugin/app',
base_path() . '/support',
base_path() . '/resource',
2025-12-24 16:59:05 +08:00
base_path() . '/.env'
2025-11-07 09:56:20 +08:00
],
// 文件后缀
'monitor_extensions' => [
'php', 'html', 'htm', 'env'
]
]
],
// MCP server process
// 'mcp_server' => [
// 'handler' => \app\mcp\process::class,
// 'count' => 1,
// 'reloadable' => true,
// ],
];