Adding descriptions

This commit is contained in:
Philipp Holzer 2019-02-03 23:39:30 +01:00
parent f3da5b3a2f
commit bc73d4bd2b
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 41 additions and 18 deletions

View file

@ -2,6 +2,13 @@
namespace Friendica\Core\Config;
/**
* The Friendica config cache for the application
* Initial, all *.config.php files are loaded into this cache with the
* ConfigCacheLoader ( @see ConfigCacheLoader )
*
* Is used for further caching operations too (depending on the ConfigAdapter )
*/
class ConfigCache implements IConfigCache, IPConfigCache
{
/**
@ -12,12 +19,15 @@ class ConfigCache implements IConfigCache, IPConfigCache
*/
public $config;
public function __construct($config = [], $overwrite = false)
/**
* @param array $config A initial config array
*/
public function __construct($config = [])
{
$this->config = [];
if (isset($config)) {
$this->loadConfigArray($config, $overwrite);
$this->loadConfigArray($config, true);
}
}