Merge pull request #8042 from MrPetovan/bug/fix-remember-me

Add missing constructor parameter to User\Cookie in dependencies.config
This commit is contained in:
Philipp 2020-01-01 18:32:58 +01:00 committed by GitHub
commit 12ca5748eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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