更新 composer.json 文件,添加新的依赖项:vlucas/phpdotenv、predis/predis、dragonmantank/cron-expression、php-amqplib/php-amqplib 以及 ramsey/uuid。 在 IndexController 中添加 MongoDB 连接测试接口。 在 UserController 中实现用户管理接口,用于创建、更新、删除和搜索用户。 在 database.php 中配置 MongoDB 连接设置。 更新路由,以包含新的与用户相关的 API 接口。 增强用户操作中的错误处理和日志记录功能。 在 process.php 中引入数据同步和工作进程配置。
21 lines
564 B
PHP
21 lines
564 B
PHP
<?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
|
|
*/
|
|
|
|
return [
|
|
'files' => [
|
|
base_path() . '/support/Request.php',
|
|
base_path() . '/support/Response.php',
|
|
]
|
|
];
|