1
0
Fork 0

Warn about composer-installer type in composer validate

pull/2245/head
Nils Adermann 2013-09-06 14:11:57 +02:00
parent 7065330c2e
commit 5be0ba14fe
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ class ConfigValidator
);
}
if (!empty($manifest['type']) && $manifest['type'] == 'composer-installer') {
$warnings[] = "The package type 'composer-installer' is deprecated. Please distribute your custom installers as plugins from now on. See http://getcomposer.org/doc/articles/plugins.md for plugin documentation.";
}
try {
$loader = new ValidatingArrayLoader(new ArrayLoader());
if (!isset($manifest['version'])) {