2.1 अपग्रेड गाइड
सुविधाएं और परिवर्तन
-
PHP>=8.1आवश्यक -
workerman/workerman:^5.1पर निर्भर, कोरूटीन समर्थन। webman Coroutine देखें -
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/databasecomposer require -W webman/database:~2.1 -
Laravel का
illuminate/rediscomposer require -W webman/redis:~2.1 -
Laravel का
illuminate/cachecomposer require -W webman/cache:~2.1 -
ThinkPHP का
topthink/think-ormcomposer require -W webman/think-orm:~2.1 -
ThinkPHP का
topthink/think-cachecomposer 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