]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Merge pull request #11010 from foss-/doc_faq_client-clean-up
[friendica.git] / static / dependencies.config.php
index dad374d8da77c19245df6f00dc343990315fcec6..28d26b4e7b6cc71f3c7a74fb4492353abf8557f4 100644 (file)
@@ -40,7 +40,6 @@ use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\L10n;
 use Friendica\Core\Lock;
-use Friendica\Core\Process;
 use Friendica\Core\Session\Capability\IHandleSessions;
 use Friendica\Core\Storage\Repository\StorageManager;
 use Friendica\Database\Database;
@@ -146,7 +145,7 @@ return [
                        'index',
                ],
                'call'       => [
-                       ['create', ['index'], Dice::CHAIN_CALL],
+                       ['create', [], Dice::CHAIN_CALL],
                ],
        ],
        '$devLogger'                    => [
@@ -182,16 +181,15 @@ return [
                        ['determine', [$_SERVER, $_GET], Dice::CHAIN_CALL],
                ],
        ],
-       App\Module::class => [
-               'instanceOf' => App\Module::class,
+       App\ModuleController::class => [
+               'instanceOf' => App\ModuleController::class,
                'call' => [
-                       ['determineModule', [], Dice::CHAIN_CALL],
+                       ['determineName', [], Dice::CHAIN_CALL],
                ],
        ],
-       Process::class => [
+       \Friendica\Core\System::class => [
                'constructParams' => [
                        [Dice::INSTANCE => '$basepath'],
-                       getmypid(),
                ],
        ],
        App\Router::class => [
@@ -224,7 +222,7 @@ return [
                        ['getBackend', [], Dice::CHAIN_CALL],
                ],
        ],
-       Network\HTTPClient\Capability\ICanRequestPerHttp::class => [
+       Network\HTTPClient\Capability\ICanSendHttpRequests::class => [
                'instanceOf' => Network\HTTPClient\Factory\HttpClient::class,
                'call'       => [
                        ['createClient', [], Dice::CHAIN_CALL],
@@ -240,4 +238,9 @@ return [
                        [Dice::INSTANCE => Util\ReversedFileReader::class],
                ]
        ],
+       \Friendica\Core\Worker\Repository\Process::class => [
+               'constructParams' => [
+                       $_SERVER
+               ],
+       ],
 ];