PHP Class Knp\Bundle\KnpBundlesBundle\Finder\Github

Inheritance: implements Knp\Bundle\KnpBundlesBundle\Finder\FinderInterface
Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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 method

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

fetchRepositoryApi() protected method

protected fetchRepositoryApi ( $repositoryApi, $query )

find() public method

Finds the repositories
public find ( ) : array
return array