Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistConfigurationManager.php
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | /* -( Get config )--------------------------------------------------------- */ | ||||
| * @task config | * @task config | ||||
| */ | */ | ||||
| public function setRuntimeConfig($key, $value) { | public function setRuntimeConfig($key, $value) { | ||||
| $this->runtimeConfig[$key] = $value; | $this->runtimeConfig[$key] = $value; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getRuntimeConfig($key, $default = null) { | |||||
| return idx($this->runtimeConfig, $key, $default); | |||||
| } | |||||
| /* -( Read/write config )--------------------------------------------------- */ | /* -( Read/write config )--------------------------------------------------- */ | ||||
| public function readLocalArcConfig() { | public function readLocalArcConfig() { | ||||
| if ($this->workingCopy) { | if ($this->workingCopy) { | ||||
| return $this->workingCopy->readLocalArcConfig(); | return $this->workingCopy->readLocalArcConfig(); | ||||
| } | } | ||||
| return array(); | return array(); | ||||
| ▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines | |||||