public function getAllowedPackages() { $top_level_packages =
$this->
getTopLevelAllowedPackages();
$allowed_packages =
$this->
recursiveGetAllowedPackages($top_level_packages);
// If the root package defines any file mappings, then implicitly add it
// to the list of allowed packages. Add it at the end so that it overrides
// all the preceding packages.
if ($this->manageOptions->
getOptions()->
hasFileMapping()) { $root_package =
$this->composer->
getPackage();
unset($allowed_packages[$root_package->
getName()]);
$allowed_packages[$root_package->
getName()] =
$root_package;
} // Handle any newly-added packages that are not already allowed.
return $this->
evaluateNewPackages($allowed_packages);
}