控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

command.stub 436B

123456789101112131415161718192021222324
  1. <?php
  2. namespace {%namespace%};
  3. use think\console\Command;
  4. use think\console\Input;
  5. use think\console\Output;
  6. class {%className%} extends Command
  7. {
  8. protected function configure()
  9. {
  10. // 指令配置
  11. $this->setName('{%commandName%}');
  12. // 设置参数
  13. }
  14. protected function execute(Input $input, Output $output)
  15. {
  16. // 指令输出
  17. $output->writeln('{%commandName%}');
  18. }
  19. }