]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Merge pull request #10929 from MrPetovan/bug/notices
[friendica.git] / static / dependencies.config.php
index 5efe78ddf329bd4b89592ffa2708fb7aeb1e9005..bf7b412c2ff4c198eb1157a117e7ae305afc5bf5 100644 (file)
@@ -46,6 +46,7 @@ use Friendica\Database\Database;
 use Friendica\Factory;
 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;
@@ -73,9 +74,12 @@ return [
                ]
        ],
        Util\ConfigFileLoader::class => [
-               'shared'          => true,
-               'constructParams' => [
-                       [Dice::INSTANCE => '$basepath'],
+               'instanceOf' => Factory\ConfigFactory::class,
+               'call'       => [
+                       ['createConfigFileLoader', [
+                               [Dice::INSTANCE => '$basepath'],
+                               $_SERVER,
+                       ], Dice::CHAIN_CALL],
                ],
        ],
        Config\Cache::class          => [
@@ -219,12 +223,20 @@ return [
                        ['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],
+               ]
+       ],
 ];