Merge pull request #2322 from s-e/patch-1
added warning about referencing dependencies in pre-install and pre-updatepull/2327/merge
commit
f220da8065
|
@ -41,6 +41,13 @@ Composer fires the following named events during its execution process:
|
||||||
- **post-create-project-cmd**: occurs after the `create-project` command is
|
- **post-create-project-cmd**: occurs after the `create-project` command is
|
||||||
executed.
|
executed.
|
||||||
|
|
||||||
|
**NOTE: Composer makes no assumptions about the state of your dependencies
|
||||||
|
prior to `install` or `update`. Therefore, you should not specify scripts that
|
||||||
|
require Composer-managed dependencies in the `pre-update-cmd` or
|
||||||
|
`pre-install-cmd` event hooks. If you need to execute scripts prior to
|
||||||
|
`install` or `update` please make sure they are self-contained within your
|
||||||
|
root package.**
|
||||||
|
|
||||||
## Defining scripts
|
## Defining scripts
|
||||||
|
|
||||||
The root JSON object in `composer.json` should have a property called
|
The root JSON object in `composer.json` should have a property called
|
||||||
|
|
Loading…
Reference in New Issue