X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdependencies.config.php;h=fe1b486d5fc2a110d3229fc5f304ba1c913a118d;hb=e2016bc67d6814303616c43f5ac13c43f280787f;hp=dad374d8da77c19245df6f00dc343990315fcec6;hpb=409d909d0f52395eae4bebf7960c368efed3865f;p=friendica.git diff --git a/static/dependencies.config.php b/static/dependencies.config.php index dad374d8da..fe1b486d5f 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -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,22 +181,16 @@ return [ ['determine', [$_SERVER, $_GET], Dice::CHAIN_CALL], ], ], - App\Module::class => [ - 'instanceOf' => App\Module::class, - 'call' => [ - ['determineModule', [], Dice::CHAIN_CALL], - ], - ], - Process::class => [ + \Friendica\Core\System::class => [ 'constructParams' => [ [Dice::INSTANCE => '$basepath'], - getmypid(), ], ], App\Router::class => [ 'constructParams' => [ $_SERVER, __DIR__ . '/routes.config.php', + [Dice::INSTANCE => Dice::SELF], null ], ], @@ -224,7 +217,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 +233,9 @@ return [ [Dice::INSTANCE => Util\ReversedFileReader::class], ] ], + \Friendica\Core\Worker\Repository\Process::class => [ + 'constructParams' => [ + $_SERVER + ], + ], ];