mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Add Helper Wrapper
This commit is contained in:
parent
cad1497b95
commit
9af46ad800
17 changed files with 320 additions and 213 deletions
|
@ -12,8 +12,7 @@
|
|||
|
||||
namespace Composer\Repository;
|
||||
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Composer\Console\Helper\WrapperInterface;
|
||||
|
||||
/**
|
||||
* Repositories manager.
|
||||
|
@ -27,13 +26,11 @@ class RepositoryManager
|
|||
private $localRepository;
|
||||
private $repositories = array();
|
||||
private $repositoryClasses = array();
|
||||
private $input;
|
||||
private $output;
|
||||
private $wrapper;
|
||||
|
||||
public function __construct(InputInterface $input, OutputInterface $output)
|
||||
public function __construct(WrapperInterface $wrapper)
|
||||
{
|
||||
$this->input = $input;
|
||||
$this->output = $output;
|
||||
$this->wrapper = $wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,7 +75,7 @@ class RepositoryManager
|
|||
}
|
||||
|
||||
$class = $this->repositoryClasses[$type];
|
||||
return new $class($this->input, $this->output, $config);
|
||||
return new $class($config, $this->wrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue