2.1 Hướng dẫn nâng cấp
Tính năng và thay đổi
-
Yêu cầu
PHP>=8.1
-
Phụ thuộc vào
workerman/workerman:^5.1
, đồng thời cung cấp hỗ trợ coroutine cho workerman, tham khảo webman coroutine -
Đã thêm tính năng kết nối hồ bơi cho
webman/redis:^2.1
webman/cache:^2.1
webman/database:^2.1
webman/think-orm:^2.1
webman/think-cache:^2.1
, tự động hỗ trợ môi trường coroutine và không phải coroutine.
Vui lòng sao lưu trước khi nâng cấp, thực hiện các lệnh sau để nâng cấp
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 bạn đã sử dụng các thành phần sau, hãy thực hiện các lệnh tương ứng để nâng cấp
-
illuminate/database
của laravelcomposer require -W webman/database:~2.1
-
illuminate/redis
của laravelcomposer require -W webman/redis:~2.1
-
illuminate/cache
của laravelcomposer require -W webman/cache:~2.1
-
topthink/think-orm
của thinkphpcomposer require -W webman/think-orm:~2.1
-
topthink/think-cache
củ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