ldc-bogt/app/Console/Commands/XmlFluxPoultryCommand.php
Jérémy Munsch 7cb304e967
Full traça poulets
Cafel APi Eat
Xml flux new
Full Models Rework
Refactorize
2022-06-08 11:44:01 +02:00

37 lines
781 B
PHP

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