1
0
Fork 0

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

pull/9832/head
Adam 2021-04-11 07:59:18 -04:00 committed by GitHub
parent 7c602d8807
commit 180ba49f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1291,7 +1291,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
} }
if ($eventDispatcher) { 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); $eventDispatcher->dispatch($postFileDownloadEvent->getName(), $postFileDownloadEvent);
} }