فهرست منبع

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

Jordi Boggiano 13 سال پیش
والد
کامیت
82c1170fa1
2فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 1 2
      bin/composer
  2. 1 1
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 2
bin/composer

@@ -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);

+ 1 - 1
src/Composer/Installer/LibraryInstaller.php

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