ldc-poule-et-toque/crons/LDCWebStatusChecker.php
2024-01-16 14:46:39 +01:00

14 lines
346 B
PHP

<?php
require_once(__DIR__ . '/../vendor/autoload.php');
require_once(__DIR__ . '/../public/wp/wp-load.php');
use Ldc\LdcWebStatusCheckerWp\Cron\ReportToLDCWebCron;
if (!defined('ENV')) {
throw new \RuntimeException('Undefined constant \'ENV\'');
}
if (\strtolower(strval(ENV)) === 'production') {
ReportToLDCWebCron::sendReport();
}