Merge pull request #14616 from Art4/refactor-dice-rules
Refactor DICE rules
This commit is contained in:
commit
e3067095f4
5 changed files with 333 additions and 349 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue