浏览代码

Added missing deprecation warning in create-project.

Niels Keurentjes 9 年之前
父节点
当前提交
4fe063b2e5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/Composer/Command/CreateProjectCommand.php

+ 3 - 0
src/Composer/Command/CreateProjectCommand.php

@@ -104,6 +104,9 @@ EOT
 
         $this->updatePreferredOptions($config, $input, $preferSource, $preferDist, true);
 
+        if ($input->getOption('dev')) {
+            $io->writeError('<warning>You are using the deprecated option "dev". Dev packages are installed by default now.</warning>');
+        }
         if ($input->getOption('no-custom-installers')) {
             $io->writeError('<warning>You are using the deprecated option "no-custom-installers". Use "no-plugins" instead.</warning>');
             $input->setOption('no-plugins', true);