Hướng dẫn nâng cấp 2.1
Tính năng và thay đổi
-
Yêu cầu
PHP>=8.1 -
Phụ thuộc
workerman/workerman:^5.1, hỗ trợ coroutine. Xem webman Coroutine -
Thêm connection pool cho
webman/redis:^2.1webman/cache:^2.1webman/database:^2.1webman/think-orm:^2.1webman/think-cache:^2.1, tự động hỗ trợ môi trường coroutine và không coroutine.
Vui lòng sao lưu trước khi nâng cấp và thực thi các lệnh sau
composer config -g --unset repos.packagist
composer require -W workerman/workerman:~5.1 workerman/webman-framework:~2.1
Nâng cấp cơ sở dữ liệu
Nếu sử dụng các thành phần sau, thực thi lệnh tương ứng:
-
illuminate/databasecủa Laravelcomposer require -W webman/database:~2.1 -
illuminate/rediscủa Laravelcomposer require -W webman/redis:~2.1 -
illuminate/cachecủa Laravelcomposer require -W webman/cache:~2.1 -
topthink/think-ormcủa ThinkPHPcomposer require -W webman/think-orm:~2.1 -
topthink/think-cachecủa ThinkPHPcomposer require -W webman/think-cache:~2.1 -
webman/redis-queue
composer require -W webman/redis-queue:~2.1 -
webman/log
composer require -W webman/log:~2.1