ldc-legaulois/app/Console/Commands/UpdateReductions.php

40 lines
862 B
PHP
Raw Normal View History

<?php
namespace App\Console\Commands;
2021-03-21 22:51:19 +01:00
use App\Jobs\UpdateReductions as JobsUpdateReductions;
use Illuminate\Console\Command;
2021-03-21 22:51:19 +01:00
//phpcs:disable Generic.Files.LineLength.TooLong
class UpdateReductions extends Command
{
2021-03-20 14:38:15 +01:00
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'reductions:update';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Update the reductions that the application get from MesBR';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
2021-03-21 22:51:19 +01:00
$this->info('Running the Job, this could take some time.');
$job = new JobsUpdateReductions();
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}