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

37 lines
784 B
PHP

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