ComposerRepository::asyncFetchFile() does not pass the downloaded URL to PostFileDownloadEvent (#9827)

main
Adam 3 years ago committed by GitHub
parent 7c602d8807
commit 180ba49f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1291,7 +1291,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
if ($eventDispatcher) {
$postFileDownloadEvent = new PostFileDownloadEvent(PluginEvents::POST_FILE_DOWNLOAD, null, null, $url, 'metadata', array('response' => $response, 'repository' => $repo));
$postFileDownloadEvent = new PostFileDownloadEvent(PluginEvents::POST_FILE_DOWNLOAD, null, null, $filename, 'metadata', array('response' => $response, 'repository' => $repo));
$eventDispatcher->dispatch($postFileDownloadEvent->getName(), $postFileDownloadEvent);
}

Loading…
Cancel
Save