ldc-flucollector/app/Console/Commands/XmlIncoReader.php

38 lines
767 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Console\Commands;
2022-04-06 10:36:10 +02:00
use App\Jobs\Arcadia\XmlIncoReaderJob;
use Illuminate\Console\Command;
class XmlIncoReader extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'xml:inco';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Run the XmlIncoReaderJob manually';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
2022-04-06 10:36:10 +02:00
$job = new XmlIncoReaderJob();
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}