2.1 अपग्रेड गाइड

सुविधाएं और परिवर्तन

  • PHP>=8.1 आवश्यक

  • workerman/workerman:^5.1 पर निर्भर, कोरूटीन समर्थन। webman Coroutine देखें

  • 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