Hirak\Prestissimo\Plugin::onPreFileDownload PHP Method

onPreFileDownload() public method

Keep-Alived file downloader
public onPreFileDownload ( Composer\Plugin\PreFileDownloadEvent $ev )
$ev Composer\Plugin\PreFileDownloadEvent
    public function onPreFileDownload(CPlugin\PreFileDownloadEvent $ev)
    {
        if ($this->disabled) {
            return;
        }
        $rfs = $ev->getRemoteFilesystem();
        $curlrfs = new CurlRemoteFilesystem($this->io, $this->config, $rfs->getOptions());
        $ev->setRemoteFilesystem($curlrfs);
    }