ldc-bogt/app/Console/Commands/CafelEggMepCommand.php

39 lines
747 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Console\Commands;
use App\Jobs\CafelMepEggJob;
use Illuminate\Console\Command;
class CafelEggMepCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'cafel:mep_egg';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Syncronisation manuelle Cafel (/api/ldc/mepoeufs)';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
$job = new CafelMepEggJob();
$job->handle();
$this->info('Fin du traitement');
}
}