3
namespace Packagist\WebBundle\Repository\Provider;
5
use Packagist\WebBundle\Repository\Repository\GitHubRepository;
7
class GitHubProvider implements ProviderInterface
9
public function getRepository($url)
11
if($this->supports($url)){
12
return new GitHubRepository($url);
16
public function supports($url)
18
return preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match);
b'\\ No newline at end of file'