Browse Source

Add post-file-download event to docs, refs #8655

Jordi Boggiano 5 years ago
parent
commit
feefa9be71
1 changed files with 3 additions and 0 deletions
  1. 3 0
      doc/articles/scripts.md

+ 3 - 0
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