Allow any package type to be installed by the default installer, fixes #86
parent
1844940a39
commit
82c1170fa1
|
@ -28,8 +28,7 @@ $dm->setDownloader('zip', new Downloader\ZipDownloader());
|
||||||
|
|
||||||
// initialize installation manager
|
// initialize installation manager
|
||||||
$im = new Installer\InstallationManager();
|
$im = new Installer\InstallationManager();
|
||||||
$im->addInstaller(new Installer\LibraryInstaller($vendorPath, $dm, $rm->getLocalRepository()));
|
$im->addInstaller(new Installer\LibraryInstaller($vendorPath, $dm, $rm->getLocalRepository(), null));
|
||||||
$im->addInstaller(new Installer\LibraryInstaller($vendorPath.'/bundles', $dm, $rm->getLocalRepository(), 'symfony-bundle'));
|
|
||||||
|
|
||||||
// load package
|
// load package
|
||||||
$loader = new Package\Loader\ArrayLoader($rm);
|
$loader = new Package\Loader\ArrayLoader($rm);
|
||||||
|
|
|
@ -65,7 +65,7 @@ class LibraryInstaller implements InstallerInterface
|
||||||
*/
|
*/
|
||||||
public function supports($packageType)
|
public function supports($packageType)
|
||||||
{
|
{
|
||||||
return $packageType === $this->type;
|
return $packageType === $this->type || null === $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue