From b63e2de819acd7d571f2a51023484335eb31b6a0 Mon Sep 17 00:00:00 2001 From: refael iliaguyev Date: Wed, 11 Jul 2018 20:21:09 +0300 Subject: [PATCH] add alias `i` to the install command --- doc/03-cli.md | 2 +- src/Composer/Command/InstallCommand.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index ef2f13523..40c141cec 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -65,7 +65,7 @@ php composer.phar init to a `composer` repository or a JSON string which similar to what the [repositories](04-schema.md#repositories) key accepts. -## install +## install / i The `install` command reads the `composer.json` file from the current directory, resolves the dependencies, and installs them into `vendor`. diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index b6ca802eb..7a8980cc4 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/src/Composer/Command/InstallCommand.php @@ -32,6 +32,7 @@ class InstallCommand extends BaseCommand { $this ->setName('install') + ->setAliases(array('i')) ->setDescription('Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.') ->setDefinition(array( new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),