1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Auto-detect dev-mode in autoload-dump and deprecate dump-autoload --no-dev (#9714)

This commit is contained in:
Jordi Boggiano 2021-02-24 21:17:05 +01:00 committed by GitHub
parent 91b6ff27ac
commit d0aac44ed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 9 deletions

View file

@ -162,10 +162,11 @@ class MyClass
}
```
**Note:** During a composer install or update process, a variable named
**Note:** During a Composer `install` or `update` command run, a variable named
`COMPOSER_DEV_MODE` will be added to the environment. If the command was run
with the `--no-dev` flag, this variable will be set to 0, otherwise it will be
set to 1.
set to 1. The variable is also available while `dump-autoload` runs, and it
will be set to same as the last `install` or `update` was run in.
## Event classes