add plugin make command

This commit is contained in:
crazywhalecc
2022-12-25 23:11:10 +08:00
parent ed5a9c6c12
commit 579269cb5b
6 changed files with 241 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ abstract class Command extends \Symfony\Component\Console\Command\Command
$this->input = $input;
$this->output = $output;
if ($this->shouldExecute()) {
if (property_exists($this, 'bootstrappers')) {
foreach ($this->bootstrappers as $bootstrapper) {
(new $bootstrapper())->bootstrap($this->input->getOptions());
}
}
return $this->handle();
}
return self::SUCCESS;