X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdependencies.config.php;h=90fa13684ca98a31e28cf4a303b872da198bbbc0;hb=8b6ace6629ab4fe229c4c35ff388efe320602a16;hp=3df54b79e61106c3485e0377d8dd90e4dd359ef7;hpb=1d0cd7328b10875f5b6bb0fa23153f338df18461;p=friendica.git diff --git a/static/dependencies.config.php b/static/dependencies.config.php index 3df54b79e6..90fa13684c 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -1,6 +1,6 @@ [ 'instanceOf' => Factory\ConfigFactory::class, 'call' => [ - ['createCache', [], Dice::CHAIN_CALL], + ['createCache', [$_SERVER], Dice::CHAIN_CALL], ], ], App\Mode::class => [ @@ -105,7 +105,6 @@ return [ Database::class => [ 'constructParams' => [ [Dice::INSTANCE => \Psr\Log\NullLogger::class], - $_SERVER, ], ], /** @@ -187,6 +186,7 @@ return [ Process::class => [ 'constructParams' => [ [Dice::INSTANCE => '$basepath'], + getmypid(), ], ], App\Router::class => [ @@ -221,5 +221,10 @@ return [ ], Network\IHTTPRequest::class => [ 'instanceOf' => Network\HTTPRequest::class, - ] + ], + Factory\Api\Mastodon\Error::class => [ + 'constructParams' => [ + $_SERVER + ], + ], ];