create service and command for sending reports

This commit is contained in:
2025-08-03 11:08:14 +03:30
parent 5085f22a1d
commit 23587ae958
9 changed files with 400 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Console\Commands;
use App\Services\Commands\SendCallStatsReportService;
use Illuminate\Console\Command;
class SendCallStatsReportCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'report:send-call-stats';
/**
* The console command description.
*
* @var string
*/
protected $description = 'gather all call stats report and send them to the center';
/**
* Execute the console command.
*/
public function handle(SendCallStatsReportService $service): void
{
$service->execute();
$this->info('Done!');
}
}