PHP Class Knp\Bundle\KnpBundlesBundle\Finder\Github

Inheritance: implements Knp\Bundle\KnpBundlesBundle\Finder\FinderInterface
Afficher le fichier Open project: KnpLabs/KnpBundles Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Github\Client $github, null $query = null, null $forkedRepoQuery = null, integer $limit = 300 )
find ( ) : array Finds the repositories

Méthodes protégées

Méthode Description
extractUrlRepository ( string $url ) : string Returns the github repository extracted from the given URL
fetchRepositoryApi ( $repositoryApi, $query )

Method Details

__construct() public méthode

public __construct ( Github\Client $github, null $query = null, null $forkedRepoQuery = null, integer $limit = 300 )
$github Github\Client
$query null
$forkedRepoQuery null
$limit integer

extractUrlRepository() protected méthode

Returns the github repository extracted from the given URL
protected extractUrlRepository ( string $url ) : string
$url string
Résultat string or NULL if the URL does not contain any repository

fetchRepositoryApi() protected méthode

protected fetchRepositoryApi ( $repositoryApi, $query )

find() public méthode

Finds the repositories
public find ( ) : array
Résultat array