mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Soft deprecate AddonLoader and ICanLoadAddons
This commit is contained in:
parent
203e9642d5
commit
1428085c4b
3 changed files with 10 additions and 2 deletions
|
@ -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') ?? []));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue