From: Art4 Date: Mon, 23 Dec 2024 13:34:10 +0000 (+0000) Subject: remove $basepath from global namespace X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0e77032cff75b259f848af8d94690efab18a75d;p=friendica.git remove $basepath from global namespace --- diff --git a/static/dependencies.config.php b/static/dependencies.config.php index 035862f14d..335b7619e5 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -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