]> git.mxchange.org Git - friendica.git/commitdiff
Refactor dependency for $_COOKIE
authorArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 14:23:58 +0000 (14:23 +0000)
committerArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 14:23:58 +0000 (14:23 +0000)
static/dependencies.config.php

index 67c7194c30568aa2a88045ac2d9b707c8f74b92a..1ead393f48d91339457d00b9a7680866471aa744 100644 (file)
@@ -39,7 +39,7 @@ use Friendica\Util;
 /**
  * @param string $basepath The base path of the Friendica installation without trailing slash
  */
-return (function(string $basepath, array $getVars, array $serverVars): array {
+return (function(string $basepath, array $getVars, array $serverVars, array $cookieVars): array {
        return [
        '*'                             => [
                // marks all class result as shared for other creations, so there's just
@@ -257,7 +257,7 @@ return (function(string $basepath, array $getVars, array $serverVars): array {
        ],
        Cookie::class => [
                'constructParams' => [
-                       $_COOKIE
+                       $cookieVars,
                ],
        ],
        ICanWriteToStorage::class => [
@@ -311,5 +311,6 @@ return (function(string $basepath, array $getVars, array $serverVars): array {
 })(
        dirname(__FILE__, 2),
        $_GET,
-       $_SERVER
+       $_SERVER,
+       $_COOKIE
 );