Compare commits
No commits in common. "c88277a6d69fdb8b4abb0d5803a473d5176489d7" and "b469031de1b3872287495313e798171bf0d23e49" have entirely different histories.
c88277a6d6
...
b469031de1
|
@ -366,19 +366,19 @@ class ConfigManager implements IConfigManager {
|
|||
|
||||
private $cache = [];
|
||||
|
||||
private function resetCache(): void {
|
||||
private final function resetCache(): void {
|
||||
$this->cache = [];
|
||||
}
|
||||
|
||||
private function cacheHas(string $pkey, string $profile) {
|
||||
private final function cacheHas(string $pkey, string $profile) {
|
||||
$ckey = "$profile.$pkey";
|
||||
return array_key_exists($ckey, $this->cache);
|
||||
}
|
||||
private function cacheGet(string $pkey, string $profile) {
|
||||
private final function cacheGet(string $pkey, string $profile) {
|
||||
$ckey = "$profile.$pkey";
|
||||
return A::get($this->cache, $ckey);
|
||||
}
|
||||
private function cacheSet(string $pkey, $value, string $profile): void {
|
||||
private final function cacheSet(string $pkey, $value, string $profile): void {
|
||||
$ckey = "$profile.$pkey";
|
||||
$this->cache[$ckey] = $value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue