ldc-poule-et-toque/crons/LDCWebStatusChecker.php

15 lines
346 B
PHP
Raw Permalink Normal View History

2024-01-08 11:27:00 +01:00
<?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();
}