mirror of
https://github.com/friendica/friendica
synced 2025-04-28 09:04:24 +02:00
Refactoring ConfigCacheLoader methods
This commit is contained in:
parent
104086215c
commit
6a9d73f7d9
9 changed files with 56 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue