change plugin_dir variable to class level field

This commit is contained in:
crazywhalecc
2023-02-21 00:00:00 +08:00
committed by Jerry
parent 12b5e6f4e3
commit e12b41b280
3 changed files with 14 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ use ZM\Annotation\AnnotationMap;
use ZM\Annotation\AnnotationParser;
use ZM\Annotation\Framework\BindEvent;
use ZM\Command\Command;
use ZM\Exception\FileSystemException;
use ZM\Exception\PluginException;
use ZM\Store\FileSystem;
use ZM\Store\PharHelper;
@@ -288,6 +289,7 @@ class PluginManager
* 打包插件到 Phar
*
* @throws PluginException
* @throws FileSystemException
*/
public static function packPlugin(string $plugin_name, string $build_dir, ?Command $command_context = null): string
{