function Installer::setUpdateAllowList
restrict the update operation to a few packages, all other packages that are already installed will be kept at their current version
Parameters
string[] $packages:
Return value
File
-
vendor/
composer/ composer/ src/ Composer/ Installer.php, line 1421
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 setUpdateAllowList(array $packages) : self {
if (count($packages) === 0) {
$this->updateAllowList = null;
}
else {
$this->updateAllowList = array_values(array_unique(array_map('strtolower', $packages)));
}
return $this;
}