]> git.mxchange.org Git - friendica.git/commitdiff
remove $basepath from global namespace
authorArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 13:34:10 +0000 (13:34 +0000)
committerArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 13:34:10 +0000 (13:34 +0000)
static/dependencies.config.php

index 035862f14d01579ebc1ab62d0f3baba47592a2f5..335b7619e5f38c9b7bf2d8ccff6d9414116416f7 100644 (file)
@@ -47,14 +47,13 @@ use Friendica\Network;
 use Friendica\Util;
 use Psr\Log\LoggerInterface;
 
-/**
- * @var string $basepath The base path of the Friendica installation without trailing slash
- */
-$basepath = (function() {
-       return dirname(__FILE__, 2);
-})();
+return (function(): array {
+       /**
+        * @var string $basepath The base path of the Friendica installation without trailing slash
+        */
+       $basepath = dirname(__FILE__, 2);
 
-return [
+       return [
        '*'                             => [
                // marks all class result as shared for other creations, so there's just
                // one instance for the whole execution
@@ -331,4 +330,5 @@ return [
                        $_GET['callback'] ?? '',
                ],
        ],
-];
+       ];
+})();
\ No newline at end of file