From cf11b48306e18bfff4e92793bed79438c93e47a7 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 14 Sep 2011 10:34:53 -0500 Subject: [PATCH] Making several tweaks per @stof --- src/Composer/Command/Command.php | 2 +- src/Composer/Command/InstallCommand.php | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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 + ) ; }