mirror of
https://github.com/friendica/friendica
synced 2025-01-20 16:59:46 +00:00
Refactor dependency for $_COOKIE
This commit is contained in:
parent
48bd6b2f81
commit
31a731deb7
1 changed files with 4 additions and 3 deletions
|
@ -39,7 +39,7 @@ use Friendica\Util;
|
||||||
/**
|
/**
|
||||||
* @param string $basepath The base path of the Friendica installation without trailing slash
|
* @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 [
|
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
|
||||||
|
@ -257,7 +257,7 @@ return (function(string $basepath, array $getVars, array $serverVars): array {
|
||||||
],
|
],
|
||||||
Cookie::class => [
|
Cookie::class => [
|
||||||
'constructParams' => [
|
'constructParams' => [
|
||||||
$_COOKIE
|
$cookieVars,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
ICanWriteToStorage::class => [
|
ICanWriteToStorage::class => [
|
||||||
|
@ -311,5 +311,6 @@ return (function(string $basepath, array $getVars, array $serverVars): array {
|
||||||
})(
|
})(
|
||||||
dirname(__FILE__, 2),
|
dirname(__FILE__, 2),
|
||||||
$_GET,
|
$_GET,
|
||||||
$_SERVER
|
$_SERVER,
|
||||||
|
$_COOKIE
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue