mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Add InputInterface and OutputInterface
This commit is contained in:
parent
fa793649fa
commit
013d145bcd
14 changed files with 124 additions and 30 deletions
|
@ -13,9 +13,12 @@
|
|||
namespace Composer\Repository\Vcs;
|
||||
|
||||
use Composer\Json\JsonFile;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
|
||||
/**
|
||||
* @author Per Bernhardt <plb@webfactory.de>
|
||||
* @author François Pluchino <francois.pluchino@opendisplay.com>
|
||||
*/
|
||||
class GitBitbucketDriver extends VcsDriver implements VcsDriverInterface
|
||||
{
|
||||
|
@ -27,13 +30,13 @@ class GitBitbucketDriver extends VcsDriver implements VcsDriverInterface
|
|||
protected $rootIdentifier;
|
||||
protected $infoCache = array();
|
||||
|
||||
public function __construct($url)
|
||||
public function __construct($url, InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
preg_match('#^(?:https?|http)://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url, $match);
|
||||
$this->owner = $match[1];
|
||||
$this->repository = $match[2];
|
||||
|
||||
parent::__construct($url);
|
||||
parent::__construct($url, $input, $output);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue