mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Adjust dump command, add another test, update docs, refs #1344
This commit is contained in:
parent
023ff131aa
commit
790a25c348
7 changed files with 32 additions and 21 deletions
|
@ -31,7 +31,7 @@ class DumpAutoloadCommand extends Command
|
|||
->setDescription('Dumps the autoloader')
|
||||
->setDefinition(array(
|
||||
new InputOption('optimize', 'o', InputOption::VALUE_NONE, 'Optimizes PSR0 packages to be loaded with classmaps too, good for production.'),
|
||||
new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables dev autoload.'),
|
||||
new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables autoload-dev rules.'),
|
||||
))
|
||||
->setHelp(<<<EOT
|
||||
<info>php composer.phar dump-autoload</info>
|
||||
|
@ -61,7 +61,7 @@ EOT
|
|||
}
|
||||
|
||||
$generator = $composer->getAutoloadGenerator();
|
||||
$generator->setDevMode($input->getOption('dev'));
|
||||
$generator->setDevMode(!$input->getOption('no-dev'));
|
||||
$generator->dump($config, $localRepo, $package, $installationManager, 'composer', $optimize);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue