mirror of
https://github.com/friendica/friendica
synced 2025-02-03 13:38:50 +00:00
Refactor DI::basePath() to use BasePath class
This commit is contained in:
parent
3a491b879c
commit
4deb28f24e
1 changed files with 5 additions and 1 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;
|
||||
|
||||
/**
|
||||
|
@ -756,7 +757,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
Reference in a new issue