CommandCollector.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. namespace Hyperf\Database\Commands;
  12. use Hyperf\Database\Commands\Migrations\FreshCommand;
  13. use Hyperf\Database\Commands\Migrations\GenMigrateCommand;
  14. use Hyperf\Database\Commands\Migrations\InstallCommand;
  15. use Hyperf\Database\Commands\Migrations\MigrateCommand;
  16. use Hyperf\Database\Commands\Migrations\RefreshCommand;
  17. use Hyperf\Database\Commands\Migrations\ResetCommand;
  18. use Hyperf\Database\Commands\Migrations\RollbackCommand;
  19. use Hyperf\Database\Commands\Migrations\StatusCommand;
  20. use Hyperf\Database\Commands\Seeders\GenSeederCommand;
  21. use Hyperf\Database\Commands\Seeders\SeedCommand;
  22. class CommandCollector
  23. {
  24. public static function getAllCommands(): array
  25. {
  26. return [
  27. ModelCommand::class,
  28. GenMigrateCommand::class,
  29. GenSeederCommand::class,
  30. InstallCommand::class,
  31. MigrateCommand::class,
  32. FreshCommand::class,
  33. RefreshCommand::class,
  34. ResetCommand::class,
  35. RollbackCommand::class,
  36. StatusCommand::class,
  37. SeedCommand::class,
  38. ];
  39. }
  40. }