X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdependencies.config.php;h=fbc085f4bc347dcc8dae17fecb7cb3eb79e29b61;hb=67a0e97f7cb2636a798d8e14e72d65335e0e1020;hp=fc2da9c093fdb6c65d2092ebb8273f4519165e0f;hpb=dfd0f67b333ff54bb719e962ba3178a496575885;p=friendica.git diff --git a/static/dependencies.config.php b/static/dependencies.config.php index fc2da9c093..fbc085f4bc 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -4,6 +4,7 @@ use Dice\Dice; use Friendica\App; use Friendica\Core\Cache; use Friendica\Core\Config; +use Friendica\Core\L10n\L10n; use Friendica\Core\Lock\ILock; use Friendica\Database\Database; use Friendica\Factory; @@ -62,7 +63,7 @@ return [ ], App\Mode::class => [ 'call' => [ - ['determineRunMode', [$_SERVER], Dice::CHAIN_CALL], + ['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL], ['determine', [], Dice::CHAIN_CALL], ], ], @@ -114,12 +115,18 @@ return [ */ LoggerInterface::class => [ 'instanceOf' => Factory\LoggerFactory::class, + 'constructParams' => [ + 'index', + ], 'call' => [ - ['create', [], Dice::CHAIN_CALL], + ['create', ['index'], Dice::CHAIN_CALL], ], ], '$devLogger' => [ 'instanceOf' => Factory\LoggerFactory::class, + 'constructParams' => [ + 'dev', + ], 'call' => [ ['createDev', [], Dice::CHAIN_CALL], ] @@ -159,4 +166,17 @@ return [ [Dice::INSTANCE => '$basepath'], ], ], + App\Router::class => [ + 'constructParams' => [ + $_SERVER, null + ], + 'call' => [ + ['loadRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL], + ], + ], + L10n::class => [ + 'constructParams' => [ + $_SERVER, $_GET + ], + ], ];