set default dir to new

This commit is contained in:
crazywhalecc
2023-02-21 00:35:14 +08:00
committed by Jerry
parent 13dd7e22f3
commit 470b2736b7
3 changed files with 10 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ class PluginGenerator
* @param array $options 传入的命令行选项
* @throws FileSystemException
*/
public function generate(array $options): void
public function generate(array $options): string
{
// 先检查插件目录是否存在,不存在则创建
FileSystem::createDir($this->plugin_dir);
@@ -87,6 +87,7 @@ class PluginGenerator
}
passthru(PHP_BINARY . ' ' . escapeshellcmd($env) . ' dump-autoload');
chdir(WORKING_DIR);
return $plugin_base_dir;
}
/**