mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-24 04:03:01 +08:00
20 lines
592 B
PHP
20 lines
592 B
PHP
<?php
|
|
// Repo root directory
|
|
$rootDir = dirname(__DIR__);
|
|
|
|
// Load Composer autoload from root
|
|
$autoloadFiles = [
|
|
$rootDir . '/vendor/autoload.php',
|
|
$rootDir . '/v-update-api/vendor/autoload.php',
|
|
];
|
|
foreach ($autoloadFiles as $file) {
|
|
if (is_file($file)) {
|
|
require $file;
|
|
}
|
|
}
|
|
|
|
// Define constants for PHPStan
|
|
if (!defined('VONTMENT_KEY')) define('VONTMENT_KEY', '');
|
|
if (!defined('VONTMENT_PLUGINS')) define('VONTMENT_PLUGINS', '');
|
|
if (!defined('VONTMENT_THEMES')) define('VONTMENT_THEMES', '');
|
|
if (!defined('VONTMNT_API_URL')) define('VONTMNT_API_URL', '');
|