Browse Source

Added missing deprecation warning in create-project.

Niels Keurentjes 9 years ago
parent
commit
4fe063b2e5
1 changed files with 3 additions and 0 deletions
  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);