19 lines
737 B
PHP
19 lines
737 B
PHP
<?php
|
|
|
|
// CLI-Wrapper für den Ergebnis-Fetcher (Bundesliga/DFB-Pokal via openligadb).
|
|
// Die eigentliche Logik liegt in App\Core\ResultFetcher und wird auch von der
|
|
// Web-Route index.php?page=fetch_results aufgerufen (für cron-job.org).
|
|
//
|
|
// Aufruf (im App-Container):
|
|
// docker compose exec app php fetch_results_openligadb.php # Dry-Run
|
|
// docker compose exec app php fetch_results_openligadb.php --apply # eintragen
|
|
// docker compose exec app php fetch_results_openligadb.php --check # Gegenkontrolle
|
|
|
|
require __DIR__ . '/src/autoload.php';
|
|
|
|
use App\Core\ResultFetcher;
|
|
|
|
$apply = in_array('--apply', $argv, true);
|
|
$check = in_array('--check', $argv, true);
|
|
|
|
echo ResultFetcher::openligadb($apply, $check) . "\n";
|