33 lines
724 B
PHP
33 lines
724 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\Commands\SendSystemMessageStatsService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class SendSystemMessageStatsCommand extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'report:send-system-message-stats';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'gather all system message stats report and send them to the center';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle(SendSystemMessageStatsService $service): void
|
|
{
|
|
$service->execute();
|
|
$this->info('Done!');
|
|
}
|
|
}
|