webman-php / console Goto Github PK
View Code? Open in Web Editor NEWwebman console plugin
Home Page: https://www.workerman.net/webman
webman console plugin
Home Page: https://www.workerman.net/webman
使用 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
创建插件应用
php webman make:model admin
这个命令连续执行两次,会把之前的同名的覆盖掉
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>...]
bin
文件之后不删除 sfx
文件,方便下次生成的时候不用再次下载,提高生成速度,还能节省下载服务器的带宽sfx
文件,存在的时候再检测一下本地版本是否与服务器版本一致,不一致再下载如应用插件app-plugin:make-controller --name=api/Test --plugin_name=somePlugin
/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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.