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.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 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/database của Laravel

    composer require -W webman/database:~2.1
  • illuminate/redis của Laravel

    composer require -W webman/redis:~2.1
  • illuminate/cache của Laravel

    composer require -W webman/cache:~2.1
  • topthink/think-orm của ThinkPHP

    composer require -W webman/think-orm:~2.1
  • topthink/think-cache của ThinkPHP

    composer 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