mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
add plugin make command
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user