Merge pull request #640 from romainneutron/composer-options

[3.8] Disable composer interactivity
This commit is contained in:
Romain Neutron
2013-09-17 08:06:24 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ class ComposerInstall extends Command
$composer->command('self-update');
$output->writeln("<info>OK</info>");
$commands = array('install', '--optimize-autoloader');
$commands = array('install', '--optimize-autoloader', '--quiet', '--no-interaction');
if ($input->getOption('prefer-source')) {
$commands[] = '--prefer-source';
}

View File

@@ -21,7 +21,7 @@ class ComposerInstallTest extends \PhraseanetPHPUnitAbstract
self::$DI['cli']['driver.composer']->expects($this->at(1))
->method('command')
->with(array('install', '--optimize-autoloader', '--dev'));
->with(array('install', '--optimize-autoloader', '--quiet', '--no-interaction', '--dev'));
$command = new ComposerInstall();
$command->setContainer(self::$DI['cli']);