cacheDependencyManagers/composerConfig.js
function () {
  var composerLockPath = path.resolve(process.cwd(), 'composer.lock');
  var composerJsonPath = path.resolve(process.cwd(), 'composer.json');

  if (isUsingComposerLock === null) {
    if (fs.existsSync(composerLockPath)) {
      logger.logInfo('[composer] using composer.lock instead of composer.json');
      isUsingComposerLock = true;
    }  else {
      isUsingComposerLock = false;
    }
  }

  return isUsingComposerLock ? composerLockPath : composerJsonPath;
}
function () {
  var composerLockPath = path.resolve(process.cwd(), 'composer.lock');
  var composerJsonPath = path.resolve(process.cwd(), 'composer.json');

  if (isUsingComposerLock === null) {
    if (fs.existsSync(composerLockPath)) {
      logger.logInfo('[composer] using composer.lock instead of composer.json');
      isUsingComposerLock = true;
    }  else {
      isUsingComposerLock = false;
    }
  }

  return isUsingComposerLock ? composerLockPath : composerJsonPath;
}
function ( ) { var composerLockPath = path . resolve ( process . cwd ( ) , 'composer.lock' ) ; var composerJsonPath = path . resolve ( process . cwd ( ) , 'composer.json' ) ; if ( isUsingComposerLock === null ) { if ( fs . existsSync ( composerLockPath ) ) { logger . logInfo ( '[composer] using composer.lock instead of composer.json' ) ; isUsingComposerLock = true ; } else { isUsingComposerLock = false ; } } return isUsingComposerLock ? composerLockPath : composerJsonPath ; }
Returns path to configuration file for composer. Uses composer.lock if it exists; otherwise, defaults to composer.json
Returns path to configuration file for composer . Uses composer . lock if it exists ; otherwise defaults to composer . json