X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdependencies.config.php;h=5aba529db2270cd2a6611522bb4f0d2bb38252b6;hb=37bda3e5fb39f1b925030d93db1e1392ca4568cf;hp=a43fb368af2592cfbc77e8e66fb5908161e674a5;hpb=f4ea74447e8a487bdd7236bdc6789a5d53fa2226;p=friendica.git diff --git a/static/dependencies.config.php b/static/dependencies.config.php index a43fb368af..5aba529db2 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -1,6 +1,6 @@ [ + 'constructParams' => [ + [Dice::INSTANCE => '$basepath'], + ], + 'call' => [ + ['load', [false], Dice::CHAIN_CALL], + ], + ], + ViewDefinition::class => [ + 'constructParams' => [ + [Dice::INSTANCE => '$basepath'], + ], + 'call' => [ + ['load', [false], Dice::CHAIN_CALL], + ], + ], Database::class => [ 'constructParams' => [ [Dice::INSTANCE => \Psr\Log\NullLogger::class], @@ -161,13 +178,13 @@ return [ Cache\Capability\ICanCache::class => [ 'instanceOf' => Cache\Factory\Cache::class, 'call' => [ - ['create', [], Dice::CHAIN_CALL], + ['createLocal', [], Dice::CHAIN_CALL], ], ], Cache\Capability\ICanCacheInMemory::class => [ 'instanceOf' => Cache\Factory\Cache::class, 'call' => [ - ['create', [], Dice::CHAIN_CALL], + ['createLocal', [], Dice::CHAIN_CALL], ], ], Lock\Capability\ICanLock::class => [ @@ -182,22 +199,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 ], ], @@ -215,7 +226,7 @@ return [ ], Cookie::class => [ 'constructParams' => [ - $_SERVER, $_COOKIE + $_COOKIE ], ], ICanWriteToStorage::class => [ @@ -240,4 +251,14 @@ return [ [Dice::INSTANCE => Util\ReversedFileReader::class], ] ], + \Friendica\Core\Worker\Repository\Process::class => [ + 'constructParams' => [ + $_SERVER + ], + ], + App\Request::class => [ + 'constructParams' => [ + $_SERVER + ], + ] ];