From feefa9be71617d808a9bdb6a8772fddfbaec5ac1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 14 Apr 2020 23:51:04 +0200 Subject: [PATCH] Add post-file-download event to docs, refs #8655 --- doc/articles/scripts.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index 590d58439..fae33f614 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -64,6 +64,8 @@ Composer fires the following named events during its execution process: - **pre-file-download**: occurs before files are downloaded and allows you to manipulate the `HttpDownloader` object prior to downloading files based on the URL to be downloaded. +- **post-file-download**: occurs after package dist files are downloaded and + allows you to perform additional checks on the file if required. - **pre-command-run**: occurs before a command is executed and allows you to manipulate the `InputInterface` object's options and arguments to tweak a command's behavior. @@ -182,6 +184,7 @@ objects: - init: [`Composer\EventDispatcher\Event`](https://getcomposer.org/apidoc/master/Composer/EventDispatcher/Event.html) - command: [`Composer\Plugin\CommandEvent`](https://getcomposer.org/apidoc/master/Composer/Plugin/CommandEvent.html) - pre-file-download: [`Composer\Plugin\PreFileDownloadEvent`](https://getcomposer.org/apidoc/master/Composer/Plugin/PreFileDownloadEvent.html) + - post-file-download: [`Composer\Plugin\PostFileDownloadEvent`](https://getcomposer.org/apidoc/master/Composer/Plugin/PostFileDownloadEvent.html) ## Running scripts manually