]> git.mxchange.org Git - friendica.git/commitdiff
Refactor DI::basePath() to use BasePath class
authorArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 13:40:53 +0000 (13:40 +0000)
committerArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 13:40:53 +0000 (13:40 +0000)
src/DI.php

index de80da34d35ea2daaafd7c9474ae1a95af4fe3ce..33976b9cfd9b0b0a73550f56a7b87bc9e6e06289 100644 (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;
 
 /**
@@ -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();
        }
 
        /**