Refactoring ConfigCacheLoader methods

This commit is contained in:
Philipp Holzer 2019-02-05 22:27:57 +01:00
parent 104086215c
commit 6a9d73f7d9
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
9 changed files with 56 additions and 57 deletions

View file

@ -11,24 +11,14 @@ namespace Friendica\Core\Config;
*/
class ConfigCache implements IConfigCache, IPConfigCache
{
/**
* NEVER, EVER use this public config array outside of the class
* It is only public due to backward compatibility to .htconfig.php
*
* @var array The cached config array
*/
public $config;
private $config;
/**
* @param array $config A initial config array
*/
public function __construct(array $config = [])
{
$this->config = [];
if (isset($config)) {
$this->loadConfigArray($config, true);
}
$this->config = $config;
}
/**