ldc-dam/app/Console/Commands/ArcadiaLinkCommand.php

41 lines
862 B
PHP
Raw Normal View History

<?php
namespace App\Console\Commands;
use App\Jobs\Arcadia\XmlArcadiaMediasIn;
use Illuminate\Console\Command;
class ArcadiaLinkCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'arcadialink:process';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Lecture du flux Arcadia entrant (media). Run the XmlArcadiaMediasIn manually';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
$job = new XmlArcadiaMediasIn();
$job->console = $this;
$job->handle();
$this->newLine();
$this->info('Fin du traitement');
}
}