2.1アップグレードガイド

機能と変更点

  • PHP>=8.1が必要です

  • workerman/workerman:^5.1に依存し、workermanのコルーチンサポートを提供。詳細はwebmanコルーチンを参照

  • webman/redis:^2.1 webman/cache:^2.1 webman/database:^2.1 webman/think-orm:^2.1 webman/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