Files

22 lines
519 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Console\Commands;
use App\Services\TahesabDocSyncService;
use Illuminate\Console\Command;
class PumpTahesabDocSyncCommand extends Command
{
protected $signature = 'tahesab:pump-doc-sync';
protected $description = 'Pump pending Tahesab documents in the background (started from admin, not scheduled)';
public function handle(TahesabDocSyncService $service): int
{
$count = $service->runLoop();
$this->info((string) $count);
return self::SUCCESS;
}
}