mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 11:58:48 +00:00
3) Introducing ConfigFactory
This commit is contained in:
parent
36120615dd
commit
b541efc5e6
11 changed files with 26 additions and 24 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue