mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge pull request #640 from romainneutron/composer-options
[3.8] Disable composer interactivity
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
@@ -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']);
|
||||
|
Reference in New Issue
Block a user