1
0
Fork 0

Allow any package type to be installed by the default installer, fixes

pull/80/merge
Jordi Boggiano 2011-11-03 19:41:04 +01:00
parent 1844940a39
commit 82c1170fa1
2 changed files with 2 additions and 3 deletions
src/Composer/Installer

View File

@ -28,8 +28,7 @@ $dm->setDownloader('zip', new Downloader\ZipDownloader());
// initialize installation manager
$im = new Installer\InstallationManager();
$im->addInstaller(new Installer\LibraryInstaller($vendorPath, $dm, $rm->getLocalRepository()));
$im->addInstaller(new Installer\LibraryInstaller($vendorPath.'/bundles', $dm, $rm->getLocalRepository(), 'symfony-bundle'));
$im->addInstaller(new Installer\LibraryInstaller($vendorPath, $dm, $rm->getLocalRepository(), null));
// load package
$loader = new Package\Loader\ArrayLoader($rm);

View File

@ -65,7 +65,7 @@ class LibraryInstaller implements InstallerInterface
*/
public function supports($packageType)
{
return $packageType === $this->type;
return $packageType === $this->type || null === $this->type;
}
/**