function ConfigCommand::getComposerConfigFile
Get the local composer.json, global config.json, or the file passed by the user
3 calls to ConfigCommand::getComposerConfigFile()
- ConfigCommand::getAuthConfigFile in vendor/
composer/ composer/ src/ Composer/ Command/ ConfigCommand.php - Get the local auth.json or global auth.json, or if the user passed in a file to use, the corresponding auth.json
- ConfigCommand::initialize in vendor/
composer/ composer/ src/ Composer/ Command/ ConfigCommand.php - ConfigCommand::suggestSettingKeys in vendor/
composer/ composer/ src/ Composer/ Command/ ConfigCommand.php - Suggest setting-keys, while taking given options in account.
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ ConfigCommand.php, line 1007
Class
- ConfigCommand
- @author Joshua Estes <Joshua.Estes@iostudio.com> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CommandCode
private function getComposerConfigFile(InputInterface $input, Config $config) : string {
return $input->getOption('global') ? $config->get('home') . '/config.json' : ($input->getOption('file') ?: Factory::getComposerFile());
}