2.1 アップグレードガイド

機能と変更

  • PHP>=8.1が必要です。

  • workerman/workerman:^5.1に依存しており、workermanのコルーチンサポートを提供します。詳細はwebmanコルーチンを参照してください。

  • webman/redis:^2.1webman/cache:^2.1webman/database:^2.1webman/think-orm:^2.1webman/think-cache:^2.1に接続プール機能が追加され、コルーチン環境と非コルーチン環境を自動的にサポートします。

アップグレード前に必ずバックアップを作成してください。次のコマンドを実行してアップグレードしてください。

composer config -g --unset repos.packagist
composer require -W workerman/workerman:~5.1 workerman/webman-framework:~2.1

データベースのアップグレード

以下のコンポーネントを使用している場合は、対応するコマンドを実行してアップグレードしてください。

  • Laravelのilluminate/database

    composer require -W webman/database:~2.1
  • Laravelのilluminate/redis

    composer require -W webman/redis:~2.1
  • Laravelのilluminate/cache

    composer require -W webman/cache:~2.1
  • ThinkPHPのtopthink/think-orm

    composer require -W webman/think-orm:~2.1
  • ThinkPHPのtopthink/think-cache

    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