remove $basepath from global namespace

This commit is contained in:
Art4 2024-12-23 13:34:10 +00:00
parent 22b1f871a8
commit a0e77032cf

View file

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