diff options
author | Vitor Mattos <vitor@php.rio> | 2021-11-27 16:28:17 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2021-11-27 16:31:29 +0300 |
commit | 213c4806ab69837b2bc4801029bd00e43a710d01 (patch) | |
tree | 1715566dc5b89deef45174e9456f69851c78204c /lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php | |
parent | 93ea4ace8e29d154f98365a84371abe93f239fe7 (diff) |
Remove deprecated appinfo/app.php and replace APP_NAME by APP_ID
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php')
-rw-r--r-- | lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php b/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php index efafa88..7020667 100644 --- a/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php +++ b/lib/Service/Gateway/SMS/Provider/HuaweiE3531Config.php @@ -41,7 +41,7 @@ class HuaweiE3531Config implements IProviderConfig { } private function getOrFail(string $key): string { - $val = $this->config->getAppValue(Application::APP_NAME, $key, null); + $val = $this->config->getAppValue(Application::APP_ID, $key, null); if (is_null($val)) { throw new ConfigurationException(); } @@ -53,17 +53,17 @@ class HuaweiE3531Config implements IProviderConfig { } public function setUrl(string $url) { - $this->config->setAppValue(Application::APP_NAME, 'huawei_e3531_api', $url); + $this->config->setAppValue(Application::APP_ID, 'huawei_e3531_api', $url); } public function isComplete(): bool { - $set = $this->config->getAppKeys(Application::APP_NAME); + $set = $this->config->getAppKeys(Application::APP_ID); return count(array_intersect($set, self::expected)) === count(self::expected); } public function remove() { foreach (self::expected as $key) { - $this->config->deleteAppValue(Application::APP_NAME, $key); + $this->config->deleteAppValue(Application::APP_ID, $key); } } } |