1
0
Fork 0

Add note about requiring composer for plugin dev, fixes #6132

pull/6174/merge
Jordi Boggiano 2017-03-06 09:01:07 +01:00
parent dad7f89fd5
commit 4b11bbccef
1 changed files with 6 additions and 0 deletions

View File

@ -85,10 +85,16 @@ Example:
}, },
"require": { "require": {
"composer-plugin-api": "^1.0" "composer-plugin-api": "^1.0"
},
"require-dev": {
"composer/composer": "^1.3"
} }
} }
``` ```
The example above has Composer itself in its require-dev, which allows you to use
the Composer classes in your test suite for example.
### The Plugin class ### The Plugin class
The class defining the Composer plugin must implement the The class defining the Composer plugin must implement the