Преглед изворни кода

Making several tweaks per @stof

Ryan Weaver пре 13 година
родитељ
комит
cf11b48306
2 измењених фајлова са 10 додато и 2 уклоњено
  1. 1 1
      src/Composer/Command/Command.php
  2. 9 1
      src/Composer/Command/InstallCommand.php

+ 1 - 1
src/Composer/Command/Command.php

@@ -24,7 +24,7 @@ abstract class Command extends BaseCommand
     /**
      * @return \Composer\Composer
      */
-    public function getComposer()
+    protected function getComposer()
     {
         return $this->getApplication()->getComposer();
     }

+ 9 - 1
src/Composer/Command/InstallCommand.php

@@ -19,7 +19,6 @@ use Composer\DependencyResolver\Solver;
 use Composer\Repository\PlatformRepository;
 use Composer\Package\MemoryPackage;
 use Composer\Package\LinkConstraint\VersionConstraint;
-
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
 
@@ -35,6 +34,15 @@ class InstallCommand extends Command
         $this
             ->setName('install')
             ->setDescription('Parses the composer.json file and downloads the needed dependencies.')
+            ->setHelp(<<<EOT
+The <info>install</info> command reads the composer.json file from the
+current directory, processes it, and downloads and installs all the
+libraries and dependencies outlined in that file.
+
+<info>php composer install</info>
+
+EOT
+            )
         ;
     }