function DownloadManager::__construct
Initializes download manager.
Parameters
IOInterface $io The Input Output Interface:
bool $preferSource prefer downloading from source:
Filesystem|null $filesystem custom Filesystem object:
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ DownloadManager.php, line 49
Class
- DownloadManager
- Downloaders manager.
Namespace
Composer\DownloaderCode
public function __construct(IOInterface $io, bool $preferSource = false, ?Filesystem $filesystem = null) {
$this->io = $io;
$this->preferSource = $preferSource;
$this->filesystem = $filesystem ?: new Filesystem();
}