diff --git a/src/Composer/Command/Command.php b/src/Composer/Command/Command.php index bb0a6a298..2fb47285c 100644 --- a/src/Composer/Command/Command.php +++ b/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(); } diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index 889d9ead7..b2eae7762 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/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(<<install 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. + +php composer install + +EOT + ) ; }