国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

關(guān)于插件市場(chǎng)插件安裝問題

864328615

問題描述

插件在第一次安裝時(shí)一切都是正常的,但是卸載composer包的時(shí)候會(huì)報(bào)錯(cuò),插件所產(chǎn)生的配置文件也不會(huì)被刪除干凈(有時(shí)會(huì),有時(shí)不會(huì),暫且認(rèn)為不會(huì)),具體的操作步驟及報(bào)錯(cuò)信息如下:

  • composer remove webman/think-cache
./composer.json has been updated
Using version ^1.0 for webman/think-cache
./composer.json has been updated
Running composer update webman/think-cache
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 0 updates, 0 removals
  - Locking opis/closure (3.6.3)
  - Locking topthink/think-cache (v2.0.6)
  - Locking topthink/think-container (v2.0.3)
  - Locking webman/think-cache (v1.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
> support\Plugin::uninstall
Script support\Plugin::uninstall handling the pre-package-uninstall event terminated with an exception

  [ErrorException]                                                                                                                                                         
  require(/Users/webman-v1.2.5/vendor/composer/../symfony/deprecation-contracts/function.php): Failed to open stream: No such file or direct  
  ory                                                                                                                                                                      

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...

之后對(duì)這個(gè)插件重裝產(chǎn)生如下問題

  • composer require webman/think-cache
Using version ^1.0 for webman/think-cache
./composer.json has been updated
Running composer update webman/think-cache
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 0 updates, 0 removals
  - Locking opis/closure (3.6.3)
  - Locking topthink/think-cache (v2.0.6)
  - Locking topthink/think-container (v2.0.3)
  - Locking webman/think-cache (v1.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
> support\Plugin::uninstall
Script support\Plugin::uninstall handling the pre-package-uninstall event terminated with an exception

  [ErrorException]                                                                                                                                                         
  require(/Users/webman-v1.2.5/vendor/composer/../symfony/deprecation-contracts/function.php): Failed to open stream: No such file or direct  
  ory                                                                                                                                                                      

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...

運(yùn)行環(huán)境

  • webman版本:v1.2.5
  • 操作系統(tǒng):macOS
  • Workerman版本:最新
  • PHP:8.0.16
3042 1 1
1個(gè)回答

walkor 打賞

修改 support/Plugin.php 里面 requireAutoloadFile 方法,改成這樣試下

    protected static function requireAutoloadFile()
    {
        if (!is_file($autoload_file = __DIR__ . '/../vendor/autoload.php')) {
            return false;
        }
        require_once __DIR__ . '/../support/helpers.php';
        return true;
    }
  • 864328615 2022-03-09

    我剛看了 本來就是這樣的

  • shixia 2022-03-10

    我也有這個(gè)問題,老大完全沒法卸載

  • walkor 2022-03-10

    你看錯(cuò)了,有改動(dòng)

年代過于久遠(yuǎn),無法發(fā)表回答
??