Move bin dir to a subdir of vendor
parent
7e3f8099b1
commit
9028546c5a
|
@ -92,7 +92,6 @@ class Application extends BaseApplication
|
||||||
// Configuration defaults
|
// Configuration defaults
|
||||||
$composerConfig = array(
|
$composerConfig = array(
|
||||||
'vendor-dir' => 'vendor',
|
'vendor-dir' => 'vendor',
|
||||||
'bin-dir' => 'bin',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$packageConfig = $file->read();
|
$packageConfig = $file->read();
|
||||||
|
@ -104,6 +103,9 @@ class Application extends BaseApplication
|
||||||
}
|
}
|
||||||
|
|
||||||
$vendorDir = $packageConfig['config']['vendor-dir'];
|
$vendorDir = $packageConfig['config']['vendor-dir'];
|
||||||
|
if (!isset($packageConfig['config']['bin-dir'])) {
|
||||||
|
$packageConfig['config']['bin-dir'] = $vendorDir.'/bin';
|
||||||
|
}
|
||||||
$binDir = $packageConfig['config']['bin-dir'];
|
$binDir = $packageConfig['config']['bin-dir'];
|
||||||
|
|
||||||
// initialize repository manager
|
// initialize repository manager
|
||||||
|
|
Loading…
Reference in New Issue