1
0
Fork 0

Reorder ArchiveManager parameters to make the download manager optional

pull/1567/head
Nils Adermann 2013-02-07 09:39:11 +01:00
parent a2b404e421
commit ba51027680
2 changed files with 3 additions and 3 deletions

View File

@ -319,12 +319,12 @@ class Factory
}
/**
* @param Downloader\DownloadManager $dm Manager use to download sources
* @param Config $config The configuration
* @param Downloader\DownloadManager $dm Manager use to download sources
*
* @return Archiver\ArchiveManager
*/
public function createArchiveManager(DownloadManager $dm = null, Config $config)
public function createArchiveManager(Config $config, DownloadManager $dm = null)
{
if (null === $dm) {
$dm = $this->createDownloadManager(new IO\NullIO(), $config);

View File

@ -32,7 +32,7 @@ class ArchiveManagerTest extends ArchiverTest
parent::setUp();
$factory = new Factory();
$this->manager = $factory->createArchiveManager(null, $factory->createConfig());
$this->manager = $factory->createArchiveManager($factory->createConfig());
$this->targetDir = $this->testDir.'/composer_archiver_tests';
}