Skip to content

Commit

Permalink
Added command with regenerate models for hyperf 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Dec 27, 2021
1 parent 9098c0b commit fe5cb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/CodeGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(protected ContainerInterface $container)
public function configure()
{
parent::configure();
$this->setDescription('Generate code for Hyperf.');
$this->setDescription('将注解修改为 PHP8 原生注解');
$this->addOption('dir', 'D', InputOption::VALUE_OPTIONAL, 'Which dir will be rewrite.', 'app');
}

Expand Down
1 change: 1 addition & 0 deletions src/Command/UpgradeModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct()
{
parent::__construct('code:regenerate-models');
$this->addArgument('path', InputArgument::REQUIRED, 'The path about Models.');
$this->setDescription('重新生成适配 Hyperf 3.0 版本的模型');
}

public function handle()
Expand Down

0 comments on commit fe5cb92

Please sign in to comment.