mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-05-01 11:12:18 +08:00
27 lines
571 B
PHP
27 lines
571 B
PHP
<?php
|
|
// phpcs:ignoreFile PSR1.Files.SideEffects
|
|
|
|
/**
|
|
* Project: UpdateAPI
|
|
* Author: Vontainment <services@vontainment.com>
|
|
* License: https://opensource.org/licenses/MIT MIT License
|
|
* Link: https://vontainment.com
|
|
* Version: 4.5.0
|
|
*
|
|
* File: cron.php
|
|
* Description: WordPress Update API
|
|
*/
|
|
|
|
if (php_sapi_name() !== 'cli') {
|
|
http_response_code(403);
|
|
exit('Forbidden');
|
|
}
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
use App\Core\ErrorManager;
|
|
use App\Helpers\CronHelper;
|
|
|
|
ErrorManager::handle(function (): void {
|
|
CronHelper::runCronJob();
|
|
});
|