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:
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user