1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Move bin dir to a subdir of vendor

This commit is contained in:
Jordi Boggiano 2011-12-03 20:47:02 +01:00
parent 7e3f8099b1
commit 9028546c5a

View file

@ -92,7 +92,6 @@ class Application extends BaseApplication
// Configuration defaults
$composerConfig = array(
'vendor-dir' => 'vendor',
'bin-dir' => 'bin',
);
$packageConfig = $file->read();
@ -104,6 +103,9 @@ class Application extends BaseApplication
}
$vendorDir = $packageConfig['config']['vendor-dir'];
if (!isset($packageConfig['config']['bin-dir'])) {
$packageConfig['config']['bin-dir'] = $vendorDir.'/bin';
}
$binDir = $packageConfig['config']['bin-dir'];
// initialize repository manager