mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Introduce ConfigFileManager for config files
This commit is contained in:
parent
14dfd24d11
commit
005f9af69b
12 changed files with 24 additions and 24 deletions
|
@ -11,7 +11,7 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function geonames_install()
|
||||
|
@ -33,7 +33,7 @@ function geonames_install()
|
|||
Hook::register('addon_settings_post', __FILE__, 'geonames_addon_settings_post');
|
||||
}
|
||||
|
||||
function geonames_load_config(App $a, ConfigFileLoader $loader)
|
||||
function geonames_load_config(App $a, ConfigFileManager $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('geonames'), \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue