mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-26 07:08:42 +02:00
[core] Support for bridge maintainers' donation URLs (#2102)
This commit is contained in:
parent
5598fef3cf
commit
ecaae735d9
10 changed files with 61 additions and 3 deletions
|
@ -40,6 +40,13 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
*/
|
||||
const URI = '';
|
||||
|
||||
/**
|
||||
* Donation URI to the site the bridge is intended to be used for.
|
||||
*
|
||||
* Use {@see BridgeAbstract::getDonationURI()} to read this parameter
|
||||
*/
|
||||
const DONATION_URI = '';
|
||||
|
||||
/**
|
||||
* A brief description of what the bridge can do
|
||||
*
|
||||
|
@ -341,6 +348,11 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
return static::URI;
|
||||
}
|
||||
|
||||
/** {@inheritdoc} */
|
||||
public function getDonationURI(){
|
||||
return static::DONATION_URI;
|
||||
}
|
||||
|
||||
/** {@inheritdoc} */
|
||||
public function getCacheTimeout(){
|
||||
return static::CACHE_TIMEOUT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue