function ShowCommand::getRootRequires
Return value
string[]
1 call to ShowCommand::getRootRequires()
- ShowCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php - Executes the current command.
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php, line 772
Class
- ShowCommand
- @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Jérémy Romey <jeremyFreeAgent> @author Mihai Plasoianu <mihai@plasoianu.de>
Namespace
Composer\CommandCode
protected function getRootRequires() : array {
$composer = $this->tryComposer();
if ($composer === null) {
return [];
}
$rootPackage = $composer->getPackage();
return array_map('strtolower', array_keys(array_merge($rootPackage->getRequires(), $rootPackage->getDevRequires())));
}