- composer require kwaadpepper/enum - add MAIL_LIST_SERVICEWEB var to .env - add XmlJobs, XArcadiaFlux - ArcadiaLink is now a Job instead of a simple comand - Add real progressbar to XArcadiaFlux - Add XmlArcadiaMediasIn to Kernel to execute twice daily on one server - Add Lib\Utils class with sendEmailErrorManually until laravel bump is done - Changed XmlJobs can now handle xml files which have only one entity within - Add guessed XSD - Changed XmlJobs can now validate xml with xsd before parse - Changed XmlJobs Report Query Exceptions on save - Added XmlJobs Add save callback to handle save - Extensive tests
40 lines
862 B
PHP
40 lines
862 B
PHP
<?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 (medias). 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->line("");
|
|
$this->info('Fin du traitement');
|
|
}
|
|
}
|