X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdependencies.config.php;h=fbc085f4bc347dcc8dae17fecb7cb3eb79e29b61;hb=29ba51ee9509f0514857eb62b9ecf67885c552ec;hp=5d0b0b97b38c827556ef8d275b7e86da79a89a62;hpb=feb2d94972b7f8d74858b8ae6d12c474b49a9bb1;p=friendica.git diff --git a/static/dependencies.config.php b/static/dependencies.config.php index 5d0b0b97b3..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,6 +63,7 @@ return [ ], App\Mode::class => [ 'call' => [ + ['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL], ['determine', [], Dice::CHAIN_CALL], ], ], @@ -84,16 +86,21 @@ return [ ], ], /** - * Creates the Util\BaseURL + * Creates the App\BaseURL * * Same as: - * $baseURL = new Util\BaseURL($configuration, $_SERVER); + * $baseURL = new App\BaseURL($configuration, $_SERVER); */ - Util\BaseURL::class => [ + App\BaseURL::class => [ 'constructParams' => [ $_SERVER, ], ], + App\Page::class => [ + 'constructParams' => [ + [Dice::INSTANCE => '$basepath'], + ], + ], /** * Create a Logger, which implements the LoggerInterface * @@ -108,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], ] @@ -145,7 +158,25 @@ return [ App\Module::class => [ 'instanceOf' => App\Module::class, 'call' => [ - ['determineModule', [$_SERVER], Dice::CHAIN_CALL], + ['determineModule', [], Dice::CHAIN_CALL], + ], + ], + Friendica\Core\Process::class => [ + 'constructParams' => [ + [Dice::INSTANCE => '$basepath'], + ], + ], + App\Router::class => [ + 'constructParams' => [ + $_SERVER, null + ], + 'call' => [ + ['loadRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL], + ], + ], + L10n::class => [ + 'constructParams' => [ + $_SERVER, $_GET ], ], ];