- 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
44 lines
1,007 B
PHP
44 lines
1,007 B
PHP
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\ArcadiaLinkCommand;
|
|
use App\Jobs\Arcadia\XmlArcadiaMediasIn;
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
/**
|
|
* The Artisan commands provided by your application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $commands = [
|
|
ArcadiaLinkCommand::class
|
|
];
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
$schedule->job(XmlArcadiaMediasIn::class)->name('arcadia_medias_in')
|
|
->onOneServer()->cron('*/2 * * * *');
|
|
}
|
|
|
|
/**
|
|
* Register the commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
$this->load(__DIR__ . '/Commands');
|
|
|
|
require base_path('routes/console.php');
|
|
}
|
|
}
|