mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 03:48:49 +00:00
3) Introducing ConfigFactory
This commit is contained in:
parent
36120615dd
commit
b541efc5e6
11 changed files with 26 additions and 24 deletions
|
@ -21,6 +21,7 @@
|
|||
* system will call the name_uninstall() function.
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -76,9 +77,9 @@ function geonames_uninstall() {
|
|||
Logger::log("removed geonames");
|
||||
}
|
||||
|
||||
function geonames_load_config(\Friendica\App $a)
|
||||
function geonames_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->loadConfigFile(__DIR__. '/config/geonames.config.php');
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('geonames'));
|
||||
}
|
||||
|
||||
function geonames_post_hook($a, &$item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue