|
|
@ -235,8 +235,8 @@ EOT
|
|
|
|
$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
|
|
|
|
$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
|
|
|
|
|
|
|
|
|
|
|
|
$allowPlugins = $composer->getConfig()->get('allow-plugins');
|
|
|
|
$allowPlugins = $composer->getConfig()->get('allow-plugins');
|
|
|
|
$removedPlugins = array_intersect(array_keys($allowPlugins), $packages);
|
|
|
|
$removedPlugins = is_array($allowPlugins) ? array_intersect(array_keys($allowPlugins), $packages) : [];
|
|
|
|
if (!$dryRun && count($removedPlugins) !== 0) {
|
|
|
|
if (!$dryRun && count($removedPlugins) > 0) {
|
|
|
|
if (count($allowPlugins) === count($removedPlugins)) {
|
|
|
|
if (count($allowPlugins) === count($removedPlugins)) {
|
|
|
|
$json->removeConfigSetting('allow-plugins');
|
|
|
|
$json->removeConfigSetting('allow-plugins');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|