mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Merge remote-tracking branch 'igorw/root-install-twice'
This commit is contained in:
commit
2dffa612a3
7 changed files with 245 additions and 19 deletions
|
@ -25,6 +25,13 @@ class ArrayRepository implements RepositoryInterface
|
|||
{
|
||||
protected $packages;
|
||||
|
||||
public function __construct(array $packages = array())
|
||||
{
|
||||
foreach ($packages as $package) {
|
||||
$this->addPackage($package);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue