mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 23:57:29 +02:00
[core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized there, ::__construct() should be used instead. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* GitlabCommitsBridge
|
||||
*
|
||||
* @name GitlabCommits Bridge
|
||||
* @description Returns the commits of a project hosted on a gitlab instance
|
||||
*/
|
||||
class GitlabCommitsBridge extends BridgeAbstract{
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = 'Pierre Mazière';
|
||||
$this->name = 'Gitlab Commits';
|
||||
$this->uri = '';
|
||||
$this->description = 'Returns the commits of a project hosted on a gitlab instance';
|
||||
public $maintainer = 'Pierre Mazière';
|
||||
public $name = 'Gitlab Commits';
|
||||
public $uri = '';
|
||||
public $description = 'Returns the commits of a project hosted on a gitlab instance';
|
||||
|
||||
$this->parameters[] = array(
|
||||
public $parameters = array( array(
|
||||
'uri'=>array(
|
||||
'name'=>'Base URI',
|
||||
'defaultValue'=>'https://gitlab.com'
|
||||
@@ -30,8 +23,7 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
||||
'name'=>'Project branch',
|
||||
'defaultValue'=>'master'
|
||||
)
|
||||
);
|
||||
}
|
||||
));
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
Reference in New Issue
Block a user