ldc-dam/app/Console/Commands/SendMediasModificationsReport.php

38 lines
863 B
PHP
Raw Normal View History

<?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 = 'media: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.');
2022-04-19 16:07:27 +02:00
$job = new JobsSendMediasModificationsReport();
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}