คู่มืออัปเกรด 2.1
ฟีเจอร์และการเปลี่ยนแปลง
-
ต้องใช้
PHP>=8.1 -
อิง
workerman/workerman:^5.1รองรับ coroutine ดู webman Coroutine -
เพิ่ม connection pool สำหรับ
webman/redis:^2.1webman/cache:^2.1webman/database:^2.1webman/think-orm:^2.1webman/think-cache:^2.1รองรับทั้งสภาพแวดล้อม coroutine และไม่ใช้ coroutine โดยอัตโนมัติ
กรุณาสำรองข้อมูลก่อนอัปเกรด แล้วรันคำสั่งด้านล่าง
composer config -g --unset repos.packagist
composer require -W workerman/workerman:~5.1 workerman/webman-framework:~2.1
อัปเกรดฐานข้อมูล
หากใช้คอมโพเนนต์ต่อไปนี้ รันคำสั่งที่ตรงกัน:
-
illuminate/databaseของ Laravelcomposer require -W webman/database:~2.1 -
illuminate/redisของ Laravelcomposer require -W webman/redis:~2.1 -
illuminate/cacheของ Laravelcomposer require -W webman/cache:~2.1 -
topthink/think-ormของ ThinkPHPcomposer require -W webman/think-orm:~2.1 -
topthink/think-cacheของ 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