use Friendica\Core\StorageManager;
use Friendica\Database\Database;
use Friendica\Factory;
-use Friendica\Model\Storage\IStorage;
+use Friendica\Model\Storage\IWritableStorage;
use Friendica\Model\User\Cookie;
+use Friendica\Model\Log\ParsedLogIterator;
use Friendica\Network;
use Friendica\Util;
use Psr\Log\LoggerInterface;
$_SERVER, $_COOKIE
],
],
- IStorage::class => [
+ IWritableStorage::class => [
'instanceOf' => StorageManager::class,
'call' => [
['getBackend', [], Dice::CHAIN_CALL],
],
],
- Network\IHTTPRequest::class => [
- 'instanceOf' => Network\HTTPRequest::class,
- ]
+ Network\IHTTPClient::class => [
+ 'instanceOf' => Factory\HTTPClientFactory::class,
+ 'call' => [
+ ['createClient', [], Dice::CHAIN_CALL],
+ ],
+ ],
+ Factory\Api\Mastodon\Error::class => [
+ 'constructParams' => [
+ $_SERVER
+ ],
+ ],
+ ParsedLogIterator::class => [
+ 'constructParams' => [
+ [Dice::INSTANCE => Util\ReversedFileReader::class],
+ ]
+ ],
];