function Installer::setOptimizeAutoloader
Whether or not generated autoloader are optimized
Return value
1 call to Installer::setOptimizeAutoloader()
- Installer::setClassMapAuthoritative in vendor/
composer/ composer/ src/ Composer/ Installer.php - Whether or not generated autoloader considers the class map authoritative.
File
-
vendor/
composer/ composer/ src/ Composer/ Installer.php, line 1232
Class
- Installer
- @author Jordi Boggiano <j.boggiano@seld.be> @author Beau Simensen <beau@dflydev.com> @author Konstantin Kudryashov <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de>
Namespace
ComposerCode
public function setOptimizeAutoloader(bool $optimizeAutoloader) : self {
$this->optimizeAutoloader = $optimizeAutoloader;
if (!$this->optimizeAutoloader) {
// Force classMapAuthoritative off when not optimizing the
// autoloader
$this->setClassMapAuthoritative(false);
}
return $this;
}