]> git.mxchange.org Git - friendica.git/blob - src/Core/Config/PConfiguration.php
Remove unused killme()
[friendica.git] / src / Core / Config / PConfiguration.php
1 <?php
2
3 namespace Friendica\Core\Config;
4
5 use Friendica\Model;
6
7 /**
8  * This class is responsible for the user-specific configuration values in Friendica
9  * The values are set through the Config-DB-Table (per Config-DB-model @see Model\Config\PConfig)
10  *
11  * The configuration cache (@see Cache\PConfigCache) is used for temporary caching of database calls. This will
12  * increase the performance.
13  */
14 abstract class PConfiguration implements IPConfiguration
15 {
16         /**
17          * @var Cache\PConfigCache
18          */
19         protected $configCache;
20
21         /**
22          * @var Model\Config\PConfig
23          */
24         protected $configModel;
25
26         /**
27          * @param Cache\PConfigCache   $configCache The configuration cache
28          * @param Model\Config\PConfig $configModel The configuration model
29          */
30         public function __construct(Cache\PConfigCache $configCache, Model\Config\PConfig $configModel)
31         {
32                 $this->configCache = $configCache;
33                 $this->configModel = $configModel;
34         }
35
36         /**
37          * Returns the Config Cache
38          *
39          * @return Cache\PConfigCache
40          */
41         public function getCache()
42         {
43                 return $this->configCache;
44         }
45 }