Add ENV var support for COMPOSER_VENDOR_DIR and COMPOSER_BIN_DIR, fixes #152
parent
50d4e0606f
commit
f27926e7b4
|
@ -114,11 +114,11 @@ class Application extends BaseApplication
|
||||||
$packageConfig['config'] = $composerConfig;
|
$packageConfig['config'] = $composerConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
$vendorDir = $packageConfig['config']['vendor-dir'];
|
$vendorDir = getenv('COMPOSER_VENDOR_DIR') ?: $packageConfig['config']['vendor-dir'];
|
||||||
if (!isset($packageConfig['config']['bin-dir'])) {
|
if (!isset($packageConfig['config']['bin-dir'])) {
|
||||||
$packageConfig['config']['bin-dir'] = $vendorDir.'/bin';
|
$packageConfig['config']['bin-dir'] = $vendorDir.'/bin';
|
||||||
}
|
}
|
||||||
$binDir = $packageConfig['config']['bin-dir'];
|
$binDir = getenv('COMPOSER_BIN_DIR') ?: $packageConfig['config']['bin-dir'];
|
||||||
|
|
||||||
// initialize repository manager
|
// initialize repository manager
|
||||||
$rm = new Repository\RepositoryManager();
|
$rm = new Repository\RepositoryManager();
|
||||||
|
|
Loading…
Reference in New Issue