Kaynağa Gözat

Merge pull request #5113 from Slamdunk/patch-2

Install / Update script event changed, now documented
Jordi Boggiano 9 yıl önce
ebeveyn
işleme
f18f383a7b
1 değiştirilmiş dosya ile 4 ekleme ve 5 silme
  1. 4 5
      doc/articles/scripts.md

+ 4 - 5
doc/articles/scripts.md

@@ -22,11 +22,10 @@ Composer fires the following named events during its execution process:
 
 ### Command Events
 
-- **pre-install-cmd**: occurs before the `install` command is executed.
-- **post-install-cmd**: occurs after the `install` command has been executed.
-- **pre-update-cmd**: occurs before the `update` command is executed.
-- **post-update-cmd**: occurs after the `update` command has been executed.
-- **pre-status-cmd**: occurs before the `status` command is executed.
+- **pre-install-cmd**: occurs before the `install` command is executed with a lock file present.
+- **post-install-cmd**: occurs after the `install` command has been executed with a lock file present.
+- **pre-update-cmd**: occurs before the `update` command is executed, or before the `install` command is executed without a lock file present.
+- **post-update-cmd**: occurs after the `update` command has been executed, or after the `install` command has been executed without a lock file present.
 - **post-status-cmd**: occurs after the `status` command has been executed.
 - **pre-archive-cmd**: occurs before the `archive` command is executed.
 - **post-archive-cmd**: occurs after the `archive` command has been executed.