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

Breadcrumb

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

function ConfigCommand::getAuthConfigFile

Get the local auth.json or global auth.json, or if the user passed in a file to use, the corresponding auth.json

2 calls to ConfigCommand::getAuthConfigFile()
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 1019

Class

ConfigCommand
@author Joshua Estes <Joshua.Estes@iostudio.com> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

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

API Navigation

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