ldc-boutique-cnc/app/Console/Commands/XmlIncoReader.php

38 lines
778 B
PHP
Raw Permalink Normal View History

2021-04-21 11:06:40 +02:00
<?php
namespace App\Console\Commands;
use App\Jobs\XmlIncoReader as JobsXmlIncoReader;
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-08-25 12:26:43 +02:00
$job = new JobsXmlIncoReader();
2021-04-21 11:06:40 +02:00
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}