]> git.mxchange.org Git - friendica.git/commitdiff
Hard deprecate AddonLoader
authorArt4 <art4@wlabs.de>
Fri, 16 May 2025 08:23:31 +0000 (08:23 +0000)
committerArt4 <art4@wlabs.de>
Fri, 16 May 2025 08:23:31 +0000 (08:23 +0000)
src/Core/Addon/Model/AddonLoader.php

index 4e0da1c80b3c53489367f091c89d0d54c50fabc5..b56ba3eed8e2f3d8ced3015720dd590f71c7a008 100644 (file)
@@ -27,6 +27,8 @@ class AddonLoader implements ICanLoadAddons
 
        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->config   = $config;
        }
@@ -36,6 +38,8 @@ class AddonLoader implements ICanLoadAddons
         */
        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') ?? []));
                $returnConfig = [];