Rename runAutoloader to dumpAutoloader, refs #3453
parent
b8f4960f0d
commit
095dc61295
|
@ -114,7 +114,7 @@ EOT
|
||||||
->setPreferSource($preferSource)
|
->setPreferSource($preferSource)
|
||||||
->setPreferDist($preferDist)
|
->setPreferDist($preferDist)
|
||||||
->setDevMode(!$input->getOption('no-dev'))
|
->setDevMode(!$input->getOption('no-dev'))
|
||||||
->setRunAutoloader(!$input->getOption('no-autoloader'))
|
->setDumpAutoloader(!$input->getOption('no-autoloader'))
|
||||||
->setRunScripts(!$input->getOption('no-scripts'))
|
->setRunScripts(!$input->getOption('no-scripts'))
|
||||||
->setOptimizeAutoloader($optimize)
|
->setOptimizeAutoloader($optimize)
|
||||||
->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
|
->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
|
||||||
|
|
|
@ -118,7 +118,7 @@ EOT
|
||||||
->setPreferSource($preferSource)
|
->setPreferSource($preferSource)
|
||||||
->setPreferDist($preferDist)
|
->setPreferDist($preferDist)
|
||||||
->setDevMode(!$input->getOption('no-dev'))
|
->setDevMode(!$input->getOption('no-dev'))
|
||||||
->setRunAutoloader(!$input->getOption('no-autoloader'))
|
->setDumpAutoloader(!$input->getOption('no-autoloader'))
|
||||||
->setRunScripts(!$input->getOption('no-scripts'))
|
->setRunScripts(!$input->getOption('no-scripts'))
|
||||||
->setOptimizeAutoloader($optimize)
|
->setOptimizeAutoloader($optimize)
|
||||||
->setUpdate(true)
|
->setUpdate(true)
|
||||||
|
|
|
@ -105,7 +105,7 @@ class Installer
|
||||||
protected $dryRun = false;
|
protected $dryRun = false;
|
||||||
protected $verbose = false;
|
protected $verbose = false;
|
||||||
protected $update = false;
|
protected $update = false;
|
||||||
protected $runAutoloader = true;
|
protected $dumpAutoloader = true;
|
||||||
protected $runScripts = true;
|
protected $runScripts = true;
|
||||||
protected $ignorePlatformReqs = false;
|
protected $ignorePlatformReqs = false;
|
||||||
protected $preferStable = false;
|
protected $preferStable = false;
|
||||||
|
@ -318,14 +318,14 @@ class Installer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->runAutoloader) {
|
if ($this->dumpAutoloader) {
|
||||||
// write autoloader
|
// write autoloader
|
||||||
if ($this->optimizeAutoloader) {
|
if ($this->optimizeAutoloader) {
|
||||||
$this->io->write('<info>Generating optimized autoload files</info>');
|
$this->io->write('<info>Generating optimized autoload files</info>');
|
||||||
} else {
|
} else {
|
||||||
$this->io->write('<info>Generating autoload files</info>');
|
$this->io->write('<info>Generating autoload files</info>');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->autoloadGenerator->setDevMode($this->devMode);
|
$this->autoloadGenerator->setDevMode($this->devMode);
|
||||||
$this->autoloadGenerator->dump($this->config, $localRepo, $this->package, $this->installationManager, 'composer', $this->optimizeAutoloader);
|
$this->autoloadGenerator->dump($this->config, $localRepo, $this->package, $this->installationManager, 'composer', $this->optimizeAutoloader);
|
||||||
}
|
}
|
||||||
|
@ -1169,14 +1169,14 @@ class Installer
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set whether to run autoloader or not
|
* set whether to run autoloader or not
|
||||||
*
|
*
|
||||||
* @param boolean $runAutoloader
|
* @param boolean $dumpAutoloader
|
||||||
* @return Installer
|
* @return Installer
|
||||||
*/
|
*/
|
||||||
public function setRunAutoloader($runAutoloader = true)
|
public function setDumpAutoloader($dumpAutoloader = true)
|
||||||
{
|
{
|
||||||
$this->runAutoloader = (boolean) $runAutoloader;
|
$this->dumpAutoloader = (boolean) $dumpAutoloader;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue