mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-09 16:44:26 +02:00
Hard deprecate AddonLoader
This commit is contained in:
parent
f8b1770efa
commit
b8b7d3cd15
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,8 @@ class AddonLoader implements ICanLoadAddons
|
||||||
|
|
||||||
public function __construct(string $basePath, IManageConfigValues $config)
|
public function __construct(string $basePath, IManageConfigValues $config)
|
||||||
{
|
{
|
||||||
|
@trigger_error('Class `' . __CLASS__ . '` is deprecated since 2025.02 and will be removed after 5 months, use implementation of `Friendica\Core\Addon\AddonHelper` instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->basePath = $basePath;
|
$this->basePath = $basePath;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
}
|
}
|
||||||
|
@ -36,6 +38,8 @@ class AddonLoader implements ICanLoadAddons
|
||||||
*/
|
*/
|
||||||
public function getActiveAddonConfig(string $configName): array
|
public function getActiveAddonConfig(string $configName): array
|
||||||
{
|
{
|
||||||
|
@trigger_error('Class `' . __CLASS__ . '` is deprecated since 2025.02 and will be removed after 5 months, use `\Friendica\Core\Addon\AddonHelper::getAddonDependencyConfig()` instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$addons = array_keys(array_filter($this->config->get('addons') ?? []));
|
$addons = array_keys(array_filter($this->config->get('addons') ?? []));
|
||||||
$returnConfig = [];
|
$returnConfig = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue