Soft deprecate AddonLoader and ICanLoadAddons

This commit is contained in:
Art4 2025-05-15 13:15:52 +00:00
parent 203e9642d5
commit 1428085c4b
3 changed files with 10 additions and 2 deletions

View file

@ -14,6 +14,9 @@ use Friendica\Core\Logger\Factory\LoggerFactory;
use Friendica\Util\Strings;
use Psr\Log\LoggerInterface;
/**
* @deprecated 2025.02 Use implementation of `\Friendica\Core\Addon\AddonHelper` instead.
*/
class AddonLoader implements ICanLoadAddons
{
const STATIC_PATH = 'static';
@ -28,7 +31,9 @@ class AddonLoader implements ICanLoadAddons
$this->config = $config;
}
/** {@inheritDoc} */
/**
* @deprecated 2025.02 Use `\Friendica\Core\Addon\AddonHelper::getAddonDependencyConfig()` instead.
*/
public function getActiveAddonConfig(string $configName): array
{
$addons = array_keys(array_filter($this->config->get('addons') ?? []));