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:
parent
91b6ff27ac
commit
d0aac44ed2
5 changed files with 31 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue