1
0
Fork 0

Move bin dir to a subdir of vendor

pull/140/head
Jordi Boggiano 2011-12-03 20:47:02 +01:00
parent 7e3f8099b1
commit 9028546c5a
1 changed files with 3 additions and 1 deletions

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