mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 17:45:34 +08:00
fix default command bug
This commit is contained in:
@@ -16,10 +16,15 @@ abstract class PluginCommand extends Command
|
|||||||
/** @var null|string 动态插件和 Phar 插件的加载目录 */
|
/** @var null|string 动态插件和 Phar 插件的加载目录 */
|
||||||
protected ?string $plugin_dir = null;
|
protected ?string $plugin_dir = null;
|
||||||
|
|
||||||
|
private static bool $loaded = false;
|
||||||
|
|
||||||
public function __construct(string $name = null)
|
public function __construct(string $name = null)
|
||||||
{
|
{
|
||||||
parent::__construct($name);
|
parent::__construct($name);
|
||||||
$this->emitBootstrap(Bootstrap\LoadPlugins::class);
|
if (!self::$loaded) {
|
||||||
|
$this->emitBootstrap(Bootstrap\LoadPlugins::class);
|
||||||
|
self::$loaded = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user