mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests.
This commit is contained in:
parent
d8dbcab710
commit
93ebfd54b1
11 changed files with 35 additions and 24 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
namespace Composer\Repository\Vcs;
|
||||
|
||||
use Composer\Config;
|
||||
use Composer\Json\JsonFile;
|
||||
use Composer\IO\IOInterface;
|
||||
|
||||
|
@ -140,7 +141,7 @@ class GitBitbucketDriver extends VcsDriver implements VcsDriverInterface
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function supports(IOInterface $io, $url, $deep = false)
|
||||
public static function supports(IOInterface $io, $url, Config $config, $deep = false)
|
||||
{
|
||||
if (!preg_match('#^https://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue