| 12345678910111213141516171819202122 |
- <?php
- declare(strict_types=1);
- namespace SixShop\Core\Command;
- use think\console\Command;
- class GenerateInstalledSixShopCommand extends Command
- {
- public function configure(): void
- {
- $this->setName('generate:installed-sixshop')
- ->setDescription('Generate vendor/composer/installedSixShop.php');
- }
- public function handle(): void
- {
- require $this->app->getRootPath() . 'scripts/generate-installed-sixshop.php';
- $this->output->writeln('Generated: ' . $this->app->getRootPath() . 'vendor/composer/installedSixShop.php');
- }
- }
|