ldc-groupe/crons/LDCWebStatusChecker.php

15 lines
336 B
PHP
Raw Normal View History

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