@@ 28-43 (lines=16) @@ | ||
25 | ]; |
|
26 | } |
|
27 | ||
28 | protected function getConfig($path = null, $default = null) |
|
29 | { |
|
30 | if ($this->config === null) { |
|
31 | $this->config = new ComposerExtra( |
|
32 | $this->namespace, |
|
33 | $this->defaultConfig, |
|
34 | 'presets' |
|
35 | ); |
|
36 | } |
|
37 | ||
38 | if ($path === null) { |
|
39 | $path = array(); |
|
40 | } |
|
41 | ||
42 | return $this->config->get($path, $default); |
|
43 | } |
|
44 | ||
45 | public function processLongArgument($arg, $pos) |
|
46 | { |
@@ 30-45 (lines=16) @@ | ||
27 | parent::__construct($cliArgs, $dieOnUnknownArg); |
|
28 | } |
|
29 | ||
30 | protected function sugaredRimGetConfig($path = null, $default = null) |
|
31 | { |
|
32 | if ($this->sugaredRimConfig === null) { |
|
33 | $this->sugaredRimConfig = new ComposerExtra( |
|
34 | $this->sugaredRimNamespace, |
|
35 | $this->sugaredRimDefaultConfig, |
|
36 | 'presets' |
|
37 | ); |
|
38 | } |
|
39 | ||
40 | if ($path === null) { |
|
41 | $path = array(); |
|
42 | } |
|
43 | ||
44 | return $this->sugaredRimConfig->get($path, $default); |
|
45 | } |
|
46 | ||
47 | public function processLongArgument($arg, $pos) |
|
48 | { |