Support for 'prefer-source' config setting, refs #553
parent
c92c69b10e
commit
0f8530ef56
|
@ -255,6 +255,10 @@ EOT
|
||||||
function ($val) { return in_array($val, array('true', 'false', '1', '0'), true); },
|
function ($val) { return in_array($val, array('true', 'false', '1', '0'), true); },
|
||||||
function ($val) { return $val !== 'false' && (bool) $val; }
|
function ($val) { return $val !== 'false' && (bool) $val; }
|
||||||
),
|
),
|
||||||
|
'prefer-source' => array(
|
||||||
|
function ($val) { return in_array($val, array('true', 'false', '1', '0'), true); },
|
||||||
|
function ($val) { return $val !== 'false' && (bool) $val; }
|
||||||
|
),
|
||||||
'notify-on-install' => array(
|
'notify-on-install' => array(
|
||||||
function ($val) { return in_array($val, array('true', 'false', '1', '0'), true); },
|
function ($val) { return in_array($val, array('true', 'false', '1', '0'), true); },
|
||||||
function ($val) { return $val !== 'false' && (bool) $val; }
|
function ($val) { return $val !== 'false' && (bool) $val; }
|
||||||
|
|
|
@ -22,6 +22,7 @@ class Config
|
||||||
public static $defaultConfig = array(
|
public static $defaultConfig = array(
|
||||||
'process-timeout' => 300,
|
'process-timeout' => 300,
|
||||||
'use-include-path' => false,
|
'use-include-path' => false,
|
||||||
|
'prefer-source' => false,
|
||||||
'notify-on-install' => true,
|
'notify-on-install' => true,
|
||||||
'github-protocols' => array('git', 'https', 'http'),
|
'github-protocols' => array('git', 'https', 'http'),
|
||||||
'vendor-dir' => 'vendor',
|
'vendor-dir' => 'vendor',
|
||||||
|
|
Loading…
Reference in New Issue