Fixed new "user config" console feature

- Replaced "DI::" call with constructor injection
- Added return value for IPConfig::load() and PreloadPConfig::load()
This commit is contained in:
Philipp 2021-04-28 21:55:23 +02:00
parent e41283faff
commit d1d5cb2857
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
3 changed files with 10 additions and 4 deletions

View file

@ -35,7 +35,7 @@ interface IPConfig
* @param int $uid The user_id
* @param string $cat The category of the configuration value
*
* @return void
* @return array The loaded config array
* @see Cache
*
*/

View file

@ -68,6 +68,8 @@ class PreloadPConfig extends BasePConfig
// load the whole category out of the DB into the cache
$this->configCache->load($uid, $config);
return $config;
}
/**