Giter VIP home page Giter VIP logo

console's People

Contributors

bangbangda avatar chaz6chez avatar difflib avatar fuzqing avatar gumphp avatar halfstring avatar krissss avatar liweijie0812 avatar ljnchn avatar sunsgneayo avatar tinywan avatar walkor avatar xgdd1987 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

console's Issues

php 8.1下 console插件的安装问题

php 8.1.8
Composer version 2.3.10 2022-07-13 15:48:23

运行composer require webman/console后报如下错误

Script support\Plugin::install handling the post-package-install event terminated with an exception

In Install.php line 21:
                                                                        
  copy(): The second argument to copy() function cannot be a directory  
                                                                        

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>...]

控制台报错

使用composer update 更新了最新的代码,console报错。php版本是8.1.3
image

webman/event 冲突

使用 webman/event 插件,需要将该插件的配置: config/plugin/event 目录 copy 到主目录 config 目录下,才可以使用 event 事件
但是:config/plugin/event/app.php 目录配置跟 config/plugin/event/console/app.php 冲突,无法使用命令php webman app-plugin:create trade 创建插件应用

在console 的command中使用workman/stomp 会缺少Worker::$globalEvent

错误信息

/app # php webman fix:producer_assistant_message_transform_0628



  [think\exception\ThrowableError]
  Fatal error: Call to a member function add() on null



Exception trace:
 () at /app/vendor/workerman/workerman/Connection/AsyncTcpConnection.php:213
 Workerman\Connection\AsyncTcpConnection->connect() at /app/vendor/workerman/stomp/src/Client.php:174
 Workerman\Stomp\Client->connect() at /app/vendor/teamones/stomp-queue/src/Client.php:60
 Webman\Stomp\Client->__construct() at /app/vendor/teamones/stomp-queue/src/Client.php:105
 Webman\Stomp\Client::connection() at /app/vendor/teamones/stomp-queue/src/Client.php:118
 Webman\Stomp\Client::__callStatic() at /app/app/common/command/TransformProducerMessageFormat.php:37
 common\command\TransformProducerMessageFormat->execute() at /app/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1024
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /app/webman:37

关于生成bin文件的建议

  1. 生成 bin 文件之后不删除 sfx 文件,方便下次生成的时候不用再次下载,提高生成速度,还能节省下载服务器的带宽
  2. 是否可以在下载的时候先检查一下本地目录是否存在 sfx 文件,存在的时候再检测一下本地版本是否与服务器版本一致,不一致再下载

命令生成model文件$table=null

php webman make:model 表名 这个命令生成的model文件里面定义表名 $table 变量是 null 。
我不清楚你这里为什么要定义多一个$table_val变量 ,然后做这样的判断。这是一个bug吗?
我想要的结果是有带表前缀的表名,例如:$table=mm_users
Snipaste_2023-07-11_00-21-53

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.