Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigCommand.php

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\Command

Code

private function getComposerConfigFile(InputInterface $input, Config $config) : string {
    return $input->getOption('global') ? $config->get('home') . '/config.json' : ($input->getOption('file') ?: Factory::getComposerFile());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal