diff --git a/config/autoload/devtool.php b/config/autoload/devtool.php index 3c2f607..1b8f9ad 100644 --- a/config/autoload/devtool.php +++ b/config/autoload/devtool.php @@ -9,6 +9,9 @@ declare(strict_types=1); * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + +use function Hyperf\Support\env; + return [ 'generator' => [ 'amqp' => [ @@ -41,4 +44,10 @@ return [ 'namespace' => 'App\\Processes', ], ], + /** + * Supported IDEs: "sublime", "textmate", "cursor", "emacs", "macvim", "phpstorm", "idea", + * "vscode", "vscode-insiders", "vscode-remote", "vscode-insiders-remote", + * "atom", "nova", "netbeans", "xdebug" + */ + 'ide' => env('DEVTOOL_IDE', ''), ]; diff --git a/env.local b/env.local index ef71203..7e2a7d1 100644 --- a/env.local +++ b/env.local @@ -6,6 +6,9 @@ JWT_KEY=hhl@shenzhen JWT_EXPIRE=2592000 ADMIN_JWT_EXPIRE=86400 +# [ide] +DEVTOOL_IDE=phpstorm + # [crontab] -- 集群配置 仅需一台true即可 其他都是false 根据 restart_pre.sh 自动生成 CRONTAB_ENABLE=false