|
@@ -2,18 +2,19 @@
|
|
|
|
|
|
namespace Packagist\WebBundle\Repository\Provider;
|
|
|
|
|
|
-interface RepositoryProviderInterface
|
|
|
+interface ProviderInterface
|
|
|
{
|
|
|
/**
|
|
|
- * Does the provider support the URL?
|
|
|
+ * Returns whether the provider supports the URL
|
|
|
* @param string $url
|
|
|
*/
|
|
|
public function supports($url);
|
|
|
|
|
|
/**
|
|
|
- * Get the repository for the URL
|
|
|
- * @param string $url
|
|
|
+ * Get the repository for the URL.
|
|
|
+ * This method is expected to return null if the URL is not supported.
|
|
|
*
|
|
|
+ * @param string $url
|
|
|
*/
|
|
|
public function getRepository($url);
|
|
|
}
|