14 lines
346 B
PHP
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();
|
|
}
|