mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Create AddonHelper and proxy to check if addon is enabled
This commit is contained in:
parent
f1dfa63764
commit
91bd6089b5
5 changed files with 61 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
namespace Friendica;
|
||||
|
||||
use Dice\Dice;
|
||||
use Friendica\Core\Addon\AddonHelper;
|
||||
use Friendica\Core\Logger\Capability\ICheckLoggerSettings;
|
||||
use Friendica\Core\Logger\LoggerManager;
|
||||
use Friendica\Core\Logger\Util\LoggerSettingsCheck;
|
||||
|
@ -280,6 +281,11 @@ abstract class DI
|
|||
return self::$dice->create(Core\Storage\Repository\StorageManager::class);
|
||||
}
|
||||
|
||||
public static function addonHelper(): AddonHelper
|
||||
{
|
||||
return self::$dice->create(AddonHelper::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Friendica\Core\System
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue