/**
* Look for installers set to be disabled in composer's extra config and
* remove them from the list of supported installers.
*
* Globals:
* - true, "all", and "*" - disable all installers.
* - false - enable all installers (useful with
* wikimedia/composer-merge-plugin or similar)
*/
protected function removeDisabledInstallers(): void
{ $extra =
$this->composer->
getPackage()->
getExtra();
if (!
isset($extra['installer-disable'
]) ||
$extra['installer-disable'
] === false
) { // No installers are disabled
return;
} // Get installers to disable
$disable =
$extra['installer-disable'
];
// Ensure $disabled is an array
if (!
is_array($disable)) {