Explorar el Código

Added missing deprecation warning in create-project.

Niels Keurentjes hace 9 años
padre
commit
4fe063b2e5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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);