开发者工具
安装
composer require hyperf/devtool
支持的命令
php bin/hyperf.php
通过执行上面的命令可获得 Command 所支持的所有命令,其中返回结果 gen 系列命令和 vendor:publish 命令主要为 devtool 组件提供支持
gengen:amqp-consumer Create a new amqp consumer classgen:amqp-producer Create a new amqp producer classgen:aspect Create a new aspect classgen:command Create a new command classgen:controller Create a new controller classgen:job Create a new job classgen:listener Create a new listener classgen:middleware Create a new middleware classgen:process Create a new process classvendorvendor:publish Publish any publishable configs from vendor packages.
快速打开
增加了一个非常简单的功能,用内置的 gen 命令快速打开创建的文件,支持 sublime、textmate、emacs、macvim、phpstorm、idea、vscode、vscode-insiders、vscode-remote、vscode-insiders-remote、atom、nova、netbeans、xdebug。
还需要在 config/autoload/devtool.php 上添加这个配置块:
return [/*** Supported IDEs: "sublime", "textmate", "emacs", "macvim", "phpstorm", "idea",* "vscode", "vscode-insiders", "vscode-remote", "vscode-insiders-remote",* "atom", "nova", "netbeans", "xdebug"*/'ide' => env('DEVTOOL_IDE', ''),//...];
