|
@@ 60-77 (lines=18) @@
|
| 57 |
|
public function handle() |
| 58 |
|
{ |
| 59 |
|
/* @var Addon $addon */ |
| 60 |
|
foreach ($this->addons->withConfig('preferences') as $addon) { |
| 61 |
|
foreach ($this->config->get($addon->getNamespace('preferences')) as $key => $setting) { |
| 62 |
|
|
| 63 |
|
if (isset($setting['env']) && env($setting['env']) !== null) { |
| 64 |
|
continue; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
if (!isset($setting['bind'])) { |
| 68 |
|
continue; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
if (!$this->preferences->has($key = $addon->getNamespace($key))) { |
| 72 |
|
continue; |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
$this->config->set($setting['bind'], $this->preferences->presenter($key)->__value); |
| 76 |
|
} |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
foreach ($this->addons->withConfig('preferences/preferences') as $addon) { |
| 80 |
|
foreach ($this->config->get($addon->getNamespace('preferences/preferences')) as $key => $setting) { |
|
@@ 79-96 (lines=18) @@
|
| 76 |
|
} |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
foreach ($this->addons->withConfig('preferences/preferences') as $addon) { |
| 80 |
|
foreach ($this->config->get($addon->getNamespace('preferences/preferences')) as $key => $setting) { |
| 81 |
|
|
| 82 |
|
if (isset($setting['env']) && env($setting['env']) !== null) { |
| 83 |
|
continue; |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
if (!isset($setting['bind'])) { |
| 87 |
|
continue; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
if (!$this->preferences->has($key = $addon->getNamespace($key))) { |
| 91 |
|
continue; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
$this->config->set($setting['bind'], $this->preferences->presenter($key)->__value); |
| 95 |
|
} |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
foreach ($this->config->get('streams::preferences/preferences', []) as $key => $setting) { |
| 99 |
|
|