mirror of
https://github.com/WenPai-org/bulk-plugin-installer.git
synced 2025-08-06 05:32:19 +08:00
集成自动更新服务器
This commit is contained in:
parent
71e7d64e41
commit
7f12edb6ae
124 changed files with 13116 additions and 2 deletions
29
lib/plugin-update-checker/Puc/v5p3/Vcs/BaseChecker.php
Normal file
29
lib/plugin-update-checker/Puc/v5p3/Vcs/BaseChecker.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
namespace YahnisElsts\PluginUpdateChecker\v5p3\Vcs;
|
||||
|
||||
if ( !interface_exists(BaseChecker::class, false) ):
|
||||
|
||||
interface BaseChecker {
|
||||
/**
|
||||
* Set the repository branch to use for updates. Defaults to 'master'.
|
||||
*
|
||||
* @param string $branch
|
||||
* @return $this
|
||||
*/
|
||||
public function setBranch($branch);
|
||||
|
||||
/**
|
||||
* Set authentication credentials.
|
||||
*
|
||||
* @param array|string $credentials
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuthentication($credentials);
|
||||
|
||||
/**
|
||||
* @return Api
|
||||
*/
|
||||
public function getVcsApi();
|
||||
}
|
||||
|
||||
endif;
|
Loading…
Add table
Add a link
Reference in a new issue