From dcbe82f398e9969ce05c5c3ddb9d3cf10b69910c Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sun, 13 Dec 2020 10:16:46 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/command/CreateModuleCommand.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/extend/catcher/command/CreateModuleCommand.php b/extend/catcher/command/CreateModuleCommand.php index 2443d34..b689001 100644 --- a/extend/catcher/command/CreateModuleCommand.php +++ b/extend/catcher/command/CreateModuleCommand.php @@ -178,9 +178,14 @@ class CreateModuleCommand extends Command { $moduleJson = FileSystem::sharedGet(__DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'module.stub'); - $content = str_replace(['{NAME}','{DESCRIPTION}','{MODULE}', '{SERVICE}'], - [$this->name, $this->description, - $this->module, '\\\\'. str_replace('\\', '\\\\',$this->namespaces . ucfirst($this->module) . 'Service')], $moduleJson); + $content = str_replace(['{NAME}','{DESCRIPTION}','{MODULE}', '{SERVICE}', '{KEYWORDS}'], + [ + $this->name, $this->description, + $this->module, + '\\\\'. str_replace('\\', '\\\\', + $this->namespaces . ucfirst($this->module) . 'Service'), + '' + ], $moduleJson); FileSystem::put($this->moduleDir . 'module.json', $content); }