Publication initiale de RelaisSMS : documentation et sources nettoyees

This commit is contained in:
2026-10-21 09:29:39 +02:00
commit ac186b03b1
158 changed files with 24818 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
namespace App\Console\Commands;
use App\Services\Calendar\CalendarEventSyncService;
use Illuminate\Console\Command;
use Throwable;
class SyncCalDavCalendarCommand extends Command
{
protected $signature = 'calendar:sync-caldav';
protected $description = 'Synchronise les evenements depuis l agenda CalDAV configure.';
public function handle(CalendarEventSyncService $syncService): int
{
try {
$run = $syncService->sync();
} catch (Throwable $exception) {
$this->error('Synchronisation CalDAV agenda en echec : '.$exception->getMessage());
return self::FAILURE;
}
$this->info((string) $run->message);
$this->line('Objets lus : '.$run->fetched_contacts);
$this->line('Evenements synchronises : '.$run->synced_contacts);
$this->line('Evenements annules localement : '.$run->deleted_contacts);
return self::SUCCESS;
}
}