소스 검색

Warn about composer-installer type in composer validate

Nils Adermann 11 년 전
부모
커밋
5be0ba14fe
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/Composer/Util/ConfigValidator.php

+ 4 - 0
src/Composer/Util/ConfigValidator.php

@@ -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'])) {