]> git.mxchange.org Git - friendica.git/commitdiff
Add missing constructor parameter to User\Cookie in dependencies.config
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 1 Jan 2020 15:56:56 +0000 (10:56 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 1 Jan 2020 15:56:56 +0000 (10:56 -0500)
static/dependencies.config.php

index 512d0e7a2c10d30472f6b1516d6780615faa2b67..6cd077b03b46f56947636a85911fa59da933109e 100644 (file)
@@ -6,9 +6,11 @@ use Friendica\Core\Cache;
 use Friendica\Core\Config;
 use Friendica\Core\L10n\L10n;
 use Friendica\Core\Lock\ILock;
+use Friendica\Core\Process;
 use Friendica\Core\Session\ISession;
 use Friendica\Database\Database;
 use Friendica\Factory;
+use Friendica\Model\User\Cookie;
 use Friendica\Util;
 use Psr\Log\LoggerInterface;
 
@@ -82,7 +84,7 @@ return [
        ],
        Database::class                 => [
                'constructParams' => [
-                       [DICE::INSTANCE => \Psr\Log\NullLogger::class],
+                       [Dice::INSTANCE => \Psr\Log\NullLogger::class],
                        $_SERVER,
                ],
        ],
@@ -162,7 +164,7 @@ return [
                        ['determineModule', [], Dice::CHAIN_CALL],
                ],
        ],
-       Friendica\Core\Process::class => [
+       Process::class => [
                'constructParams' => [
                        [Dice::INSTANCE => '$basepath'],
                ],
@@ -187,4 +189,9 @@ return [
                        ['start', [], Dice::CHAIN_CALL],
                ],
        ],
+       Cookie::class => [
+               'constructParams' => [
+                       $_SERVER, $_COOKIE
+               ],
+       ]
 ];