Files
jandl-taskmanager-app/be/app/Console/Commands/SyncVacationsFromIntranet.php
T
2023-03-24 13:46:29 +01:00

37 lines
720 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Intranet\IntranetService;
use Illuminate\Console\Command;
class SyncVacationsFromIntranet extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'intranet:sync-vacations';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Syncs vacations from Intranet to our DB';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$intranetService = new IntranetService();
$intranetService->syncVacations();
return Command::SUCCESS;
}
}