cacheDependencyManagers/composerConfig.js
function () {
  var composerInstallDirectory = 'vendor';

  var exists = null;
  try {
    exists = fs.statSync(getComposerConfigPath());
  } catch (e) {}

  if (exists !== null) {
    var composerConfig = JSON.parse(fs.readFileSync(getComposerConfigPath()));
    if ('config' in composerConfig && 'vendor-dir' in composerConfig.config) {
      composerInstallDirectory = composerConfig.config['vendor-dir'];
    }
  }
  return composerInstallDirectory;
}
function () {
  var composerInstallDirectory = 'vendor';

  var exists = null;
  try {
    exists = fs.statSync(getComposerConfigPath());
  } catch (e) {}

  if (exists !== null) {
    var composerConfig = JSON.parse(fs.readFileSync(getComposerConfigPath()));
    if ('config' in composerConfig && 'vendor-dir' in composerConfig.config) {
      composerInstallDirectory = composerConfig.config['vendor-dir'];
    }
  }
  return composerInstallDirectory;
}
function ( ) { var composerInstallDirectory = 'vendor' ; var exists = null ; try { exists = fs . statSync ( getComposerConfigPath ( ) ) ; } catch ( e ) { } if ( exists !== null ) { var composerConfig = JSON . parse ( fs . readFileSync ( getComposerConfigPath ( ) ) ) ; if ( 'config' in composerConfig && 'vendor-dir' in composerConfig . config ) { composerInstallDirectory = composerConfig . config [ 'vendor-dir' ] ; } } return composerInstallDirectory ; }
Composer.json can specify a custom vendor directory Let's get it if we can!
Composer . json can specify a custom vendor directory Let s get it if we can!