ProviderInterface.php 426 B

1234567891011121314151617181920
  1. <?php
  2. namespace Packagist\WebBundle\Repository\Provider;
  3. interface ProviderInterface
  4. {
  5. /**
  6. * Returns whether the provider supports the URL
  7. * @param string $url
  8. */
  9. public function supports($url);
  10. /**
  11. * Get the repository for the URL.
  12. * This method is expected to return null if the URL is not supported.
  13. *
  14. * @param string $url
  15. */
  16. public function getRepository($url);
  17. }