mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Do not install root package as a vendor if some dependency requires it, closes #480
Also add some tests for the installer.
This commit is contained in:
parent
762f469cd9
commit
0995933183
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