ExportMaf.php 659 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Services\ExportService;
  4. use Exception;
  5. use Illuminate\Console\Command;
  6. class ExportMaf extends Command
  7. {
  8. /**
  9. * The name and signature of the console command.
  10. *
  11. * @var string
  12. */
  13. protected $signature = 'app:export-maf';
  14. /**
  15. * The console command description.
  16. *
  17. * @var string
  18. */
  19. protected $description = 'Экспорт каталога МАФ';
  20. /**
  21. * Execute the console command.
  22. * @throws Exception
  23. */
  24. public function handle(): void
  25. {
  26. // run service command
  27. $this->info((new ExportService)->handle());
  28. }
  29. }