mirror of
https://github.com/WenPai-org/bulk-plugin-installer.git
synced 2025-08-06 13:45:58 +08:00
集成自动更新服务器
This commit is contained in:
parent
71e7d64e41
commit
7f12edb6ae
124 changed files with 13116 additions and 2 deletions
34
lib/plugin-update-checker/load-v5p3.php
Normal file
34
lib/plugin-update-checker/load-v5p3.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace YahnisElsts\PluginUpdateChecker\v5p3;
|
||||
|
||||
use YahnisElsts\PluginUpdateChecker\v5\PucFactory as MajorFactory;
|
||||
use YahnisElsts\PluginUpdateChecker\v5p3\PucFactory as MinorFactory;
|
||||
|
||||
require __DIR__ . '/Puc/v5p3/Autoloader.php';
|
||||
new Autoloader();
|
||||
|
||||
require __DIR__ . '/Puc/v5p3/PucFactory.php';
|
||||
require __DIR__ . '/Puc/v5/PucFactory.php';
|
||||
|
||||
//Register classes defined in this version with the factory.
|
||||
foreach (
|
||||
array(
|
||||
'Plugin\\UpdateChecker' => Plugin\UpdateChecker::class,
|
||||
'Theme\\UpdateChecker' => Theme\UpdateChecker::class,
|
||||
|
||||
'Vcs\\PluginUpdateChecker' => Vcs\PluginUpdateChecker::class,
|
||||
'Vcs\\ThemeUpdateChecker' => Vcs\ThemeUpdateChecker::class,
|
||||
|
||||
'GitHubApi' => Vcs\GitHubApi::class,
|
||||
'BitBucketApi' => Vcs\BitBucketApi::class,
|
||||
'GitLabApi' => Vcs\GitLabApi::class,
|
||||
)
|
||||
as $pucGeneralClass => $pucVersionedClass
|
||||
) {
|
||||
MajorFactory::addVersion($pucGeneralClass, $pucVersionedClass, '5.3');
|
||||
//Also add it to the minor-version factory in case the major-version factory
|
||||
//was already defined by another, older version of the update checker.
|
||||
MinorFactory::addVersion($pucGeneralClass, $pucVersionedClass, '5.3');
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue