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

38 lines
784 B
PHP
Raw Normal View History

<?php
namespace App\Console\Commands;
2021-03-21 22:51:19 +01:00
use App\Jobs\XmlTracaReader as JobsXmlTracaReader;
use Illuminate\Console\Command;
class XmlTracaReader extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
2021-03-21 22:51:19 +01:00
protected $signature = 'xml:traca';
/**
* The console command description.
*
* @var string
*/
2021-03-21 22:51:19 +01:00
protected $description = 'Run the XmlTracaReaderJob manually';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
2021-03-21 22:51:19 +01:00
$this->info('Running the Job, this could take some time.');
2022-02-10 16:14:58 +01:00
$job = new JobsXmlTracaReader();
2021-03-21 22:51:19 +01:00
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}