unset($namespacePaths['CodeIgniter\\'
]);
} if (!
method_exists(InstalledVersions::
class, 'getAllRawData'
)) { throw new RuntimeException( 'Your Composer version is too old.'
. ' Please update Composer (run `composer self-update`) to v2.0.14 or later'
. ' and remove your vendor/ directory, and run `composer update`.'
);
} // This method requires Composer 2.0.14 or later.
$allData = InstalledVersions::
getAllRawData();
$packageList =
[];
foreach ($allData as $list) { $packageList =
array_merge($packageList,
$list['versions'
]);
} // Check config for $composerPackages.
$only =
$composerPackages['only'
] ??
[];
$exclude =
$composerPackages['exclude'
] ??
[];
if ($only !==
[] &&
$exclude !==
[]) { throw new ConfigException('Cannot use "only" and "exclude" at the same time in "Config\Modules::$composerPackages".'
);
}