Browse Source

Moving/Renaming ConfigCacheLoader to ConfigFileLoader

pull/832/head
Philipp Holzer 3 years ago
parent
commit
c8a63f6b9c
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
  1. 3
      geonames/geonames.php
  2. 3
      gravatar/gravatar.php
  3. 3
      impressum/impressum.php
  4. 3
      ldapauth/ldapauth.php
  5. 3
      libravatar/libravatar.php
  6. 3
      openstreetmap/openstreetmap.php
  7. 3
      piwik/piwik.php
  8. 3
      public_server/public_server.php
  9. 3
      pumpio/pumpio.php
  10. 3
      testdrive/testdrive.php
  11. 3
      twitter/twitter.php

3
geonames/geonames.php

@ -27,6 +27,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\Network;
use Friendica\Util\XML;
@ -77,7 +78,7 @@ function geonames_uninstall() {
Logger::log("removed geonames");
}
function geonames_load_config(\Friendica\App $a, Config\Cache\ConfigCacheLoader $loader)
function geonames_load_config(\Friendica\App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('geonames'));
}

3
gravatar/gravatar.php

@ -14,6 +14,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\Strings;
/**
@ -36,7 +37,7 @@ function gravatar_uninstall() {
Logger::log("unregistered gravatar in avatar_lookup hook");
}
function gravatar_load_config(App $a, Config\Cache\ConfigCacheLoader $loader)
function gravatar_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('gravatar'));
}

3
impressum/impressum.php

@ -13,6 +13,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
@ -52,7 +53,7 @@ function impressum_footer($a, &$b) {
}
}
function impressum_load_config(\Friendica\App $a, Config\Cache\ConfigCacheLoader $loader)
function impressum_load_config(\Friendica\App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('impressum'));
}

3
ldapauth/ldapauth.php

@ -58,6 +58,7 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Model\User;
use Friendica\Util\Config\ConfigFileLoader;
function ldapauth_install()
{
@ -71,7 +72,7 @@ function ldapauth_uninstall()
Hook::unregister('authenticate', 'addon/ldapauth/ldapauth.php', 'ldapauth_hook_authenticate');
}
function ldapauth_load_config(\Friendica\App $a, Config\Cache\ConfigCacheLoader $loader)
function ldapauth_load_config(\Friendica\App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('ldapauth'));
}

3
libravatar/libravatar.php

@ -14,6 +14,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\Strings;
/**
@ -36,7 +37,7 @@ function libravatar_uninstall()
Logger::log("unregistered libravatar in avatar_lookup hook");
}
function libravatar_load_config(App $a, Config\Cache\ConfigCacheLoader $loader)
function libravatar_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('libravatar'));
}

3
openstreetmap/openstreetmap.php

@ -15,6 +15,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\Network;
use Friendica\Util\Strings;
@ -47,7 +48,7 @@ function openstreetmap_uninstall()
Logger::log("removed openstreetmap");
}
function openstreetmap_load_config(\Friendica\App $a, Config\Cache\ConfigCacheLoader $loader)
function openstreetmap_load_config(\Friendica\App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('openstreetmap'));
}

3
piwik/piwik.php

@ -36,6 +36,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\Strings;
function piwik_install() {
@ -52,7 +53,7 @@ function piwik_uninstall() {
Logger::log("uninstalled piwik addon");
}
function piwik_load_config(\Friendica\App $a, Config\Cache\ConfigCacheLoader $loader)
function piwik_load_config(\Friendica\App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('piwik'));
}

3
public_server/public_server.php

@ -14,6 +14,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
@ -35,7 +36,7 @@ function public_server_uninstall()
Hook::unregister('logged_in', 'addon/public_server/public_server.php', 'public_server_login');
}
function public_server_load_config(App $a, Config\Cache\ConfigCacheLoader $loader)
function public_server_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('public_server'));
}

3
pumpio/pumpio.php

@ -23,6 +23,7 @@ use Friendica\Model\Group;
use Friendica\Model\Item;
use Friendica\Model\Queue;
use Friendica\Model\User;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
@ -377,7 +378,7 @@ function pumpio_settings_post(App $a, array &$b)
}
}
function pumpio_load_config(App $a, Config\Cache\ConfigCacheLoader $loader)
function pumpio_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('pumpio'));
}

3
testdrive/testdrive.php

@ -12,6 +12,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\Model\User;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
function testdrive_install() {
@ -35,7 +36,7 @@ function testdrive_uninstall() {
}
function testdrive_load_config(App $a, Config\Cache\ConfigCacheLoader $loader)
function testdrive_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('testdrive'));
}

3
twitter/twitter.php

@ -86,6 +86,7 @@ use Friendica\Model\ItemContent;
use Friendica\Model\Queue;
use Friendica\Model\User;
use Friendica\Object\Image;
use Friendica\Util\Config\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
@ -135,7 +136,7 @@ function twitter_uninstall()
Hook::unregister('addon_settings_post', __FILE__, 'twitter_settings_post');
}
function twitter_load_config(App $a, Config\Cache\ConfigCacheLoader $loader)
function twitter_load_config(App $a, ConfigFileLoader $loader)
{
$a->getConfigCache()->load($loader->loadAddonConfig('twitter'));
}

Loading…
Cancel
Save