043306819b
- 添加基础配置文件,包括app、autoload、bootstrap、container、database、dependence、exception、log、middleware - 新增完整Dockerfile和docker-compose.yml,支持容器化运行 - 增加webman控制台插件配置及依赖管理文件composer.json - 创建app目录下核心控制器IndexController及进程Http和Monitor - 实现日志工具类Logger,支持多级别及异常格式化 - 配置.gitignore优化忽略无关文件和目录 - 初始化.idea项目配置文件,支持开发环境集成 - 完善启动流程,支持自动加载配置、路由及中间件 - 增加文件变更监控和内存监控机制,提升开发体验 - 设定默认时区为Asia/Shanghai,开启调试模式 - 配置日志输出格式,支持多种日志处理器与颜色高亮 - 提供公共函数文件框架,便于扩展自定义功能
29 lines
936 B
PHP
29 lines
936 B
PHP
<?php
|
|
return [
|
|
'default' => 'mysql',
|
|
'connections' => [
|
|
'mysql' => [
|
|
'driver' => 'mysql',
|
|
'host' => '127.0.0.1',
|
|
'port' => '3306',
|
|
'database' => 'your_database',
|
|
'username' => 'your_username',
|
|
'password' => 'your_password',
|
|
'charset' => 'utf8mb4',
|
|
'collation' => 'utf8mb4_general_ci',
|
|
'prefix' => '',
|
|
'strict' => true,
|
|
'engine' => null,
|
|
'options' => [
|
|
PDO::ATTR_EMULATE_PREPARES => false, // Must be false for Swoole and Swow drivers.
|
|
],
|
|
'pool' => [
|
|
'max_connections' => 5,
|
|
'min_connections' => 1,
|
|
'wait_timeout' => 3,
|
|
'idle_timeout' => 60,
|
|
'heartbeat_interval' => 50,
|
|
],
|
|
],
|
|
],
|
|
]; |