From 86518a22d7ff332a13fd7ca6b957976f220ef1c5 Mon Sep 17 00:00:00 2001 From: Sebastian Krebs Date: Tue, 23 Oct 2012 13:47:41 +0200 Subject: [PATCH] Allow autoloader optimization right from 'update' too --- src/Composer/Command/UpdateCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Command/UpdateCommand.php b/src/Composer/Command/UpdateCommand.php index b92245e4e..fe7ae5533 100644 --- a/src/Composer/Command/UpdateCommand.php +++ b/src/Composer/Command/UpdateCommand.php @@ -37,6 +37,7 @@ class UpdateCommand extends Command new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'Disables all custom installers.'), new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'), new InputOption('verbose', 'v', InputOption::VALUE_NONE, 'Shows more details including new commits pulled in when updating packages.'), + new InputOption('optimize-autoloaders', null, InputOption::VALUE_NONE, 'Optimize autoloaders during autoloader dump') )) ->setHelp(<<update command reads the composer.json file from the @@ -67,6 +68,7 @@ EOT ->setPreferDist($input->getOption('prefer-dist')) ->setDevMode($input->getOption('dev')) ->setRunScripts(!$input->getOption('no-scripts')) + ->setOptimizeAutoloaders($input->getOption('optimize-autoloaders')) ->setUpdate(true) ->setUpdateWhitelist($input->getArgument('packages')) ;