ldc-dam/app/Console/Commands/SendMediasModificationsReport.php
2022-06-20 14:04:16 +02:00

37 lines
864 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\SendMediasModificationsReport as JobsSendMediasModificationsReport;
use Illuminate\Console\Command;
class SendMediasModificationsReport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'medias:sendreport';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Run the SendMediasModificationsReport Manually';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
$job = new JobsSendMediasModificationsReport();
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}