1
0
Fork 0
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:
Igor Wiedler 2012-04-27 11:42:58 +02:00
parent 762f469cd9
commit 0995933183
7 changed files with 245 additions and 19 deletions

View file

@ -25,6 +25,13 @@ class ArrayRepository implements RepositoryInterface
{
protected $packages;
public function __construct(array $packages = array())
{
foreach ($packages as $package) {
$this->addPackage($package);
}
}
/**
* {@inheritDoc}
*/