2021-04-12 14:30:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
|
|
use App\Jobs\XSCVMepReader as JobsXSCVMepReader;
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
|
|
class XSCVMepReader extends Command
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The name and signature of the console command.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $signature = 'csv:mep';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The console command description.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $description = 'Run the XSCVMepReader manually';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Execute the console command.
|
|
|
|
|
*
|
2022-02-10 16:14:58 +01:00
|
|
|
* @return integer
|
2021-04-12 14:30:53 +02:00
|
|
|
*/
|
|
|
|
|
public function handle()
|
|
|
|
|
{
|
|
|
|
|
$this->info('Running the Job, this could take some time.');
|
2022-02-10 16:14:58 +01:00
|
|
|
$job = new JobsXSCVMepReader();
|
2021-04-12 14:30:53 +02:00
|
|
|
$job->console = $this;
|
|
|
|
|
$job->handle();
|
|
|
|
|
$this->info('Job completed');
|
|
|
|
|
}
|
|
|
|
|
}
|