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.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 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/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-queuecomposer require -W webman/redis-queue:~2.1 -
webman/logcomposer require -W webman/log:~2.1