GenerateInstalledSixShopCommand.php 584 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Core\Command;
  4. use think\console\Command;
  5. class GenerateInstalledSixShopCommand extends Command
  6. {
  7. public function configure(): void
  8. {
  9. $this->setName('generate:installed-sixshop')
  10. ->setDescription('Generate vendor/composer/installedSixShop.php');
  11. }
  12. public function handle(): void
  13. {
  14. require $this->app->getRootPath() . 'scripts/generate-installed-sixshop.php';
  15. $this->output->writeln('Generated: ' . $this->app->getRootPath() . 'vendor/composer/installedSixShop.php');
  16. }
  17. }