mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Allow autoloader optimization right from 'install'
This commit is contained in:
parent
935da3fdbc
commit
d3aaeb21da
2 changed files with 17 additions and 1 deletions
|
@ -37,6 +37,7 @@ class InstallCommand 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(<<<EOT
|
||||
The <info>install</info> command reads the composer.lock file from
|
||||
|
@ -64,6 +65,7 @@ EOT
|
|||
->setPreferDist($input->getOption('prefer-dist'))
|
||||
->setDevMode($input->getOption('dev'))
|
||||
->setRunScripts(!$input->getOption('no-scripts'))
|
||||
->setOptimizeAutoloaders($input->getOption('optimize-autoloaders'))
|
||||
;
|
||||
|
||||
if ($input->getOption('no-custom-installers')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue