Merge pull request #14616 from Art4/refactor-dice-rules

Refactor DICE rules
This commit is contained in:
Hypolite Petovan 2024-12-26 23:23:59 -05:00 committed by GitHub
commit e3067095f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 333 additions and 349 deletions

View file

@ -14,6 +14,7 @@ use Friendica\Core\Session\Capability\IHandleSessions;
use Friendica\Core\Session\Capability\IHandleUserSessions;
use Friendica\Navigation\SystemMessages;
use Friendica\Protocol\ATProtocol;
use Friendica\Util\BasePath;
use Psr\Log\LoggerInterface;
/**
@ -746,7 +747,10 @@ abstract class DI
*/
public static function basePath()
{
return self::$dice->create('$basepath');
/** @var BasePath */
$basePath = self::$dice->create(BasePath::class);
return $basePath->getPath();
}
/**