3) Introducing ConfigFactory

This commit is contained in:
Philipp Holzer 2019-02-03 22:22:03 +01:00
parent 36120615dd
commit b541efc5e6
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
11 changed files with 26 additions and 24 deletions

View file

@ -30,6 +30,7 @@
* about http/https but beware to put the trailing / at the end of your
* setting.
*/
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
@ -51,9 +52,9 @@ function piwik_uninstall() {
Logger::log("uninstalled piwik addon");
}
function piwik_load_config(\Friendica\App $a)
function piwik_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
{
$a->loadConfigFile(__DIR__ . '/config/piwik.config.php');
$a->getConfig()->loadConfigArray($loader->loadConfigFile('piwik'));
}
function piwik_analytics($a,&$b) {