X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdependencies.config.php;h=ea9830679f426d74a609bc34407e74da2d83d006;hb=33674808dcbb2336466c65ed9915bda661076ae6;hp=c9f013a6f46d4271f543f2c9da04fe02c9cd4279;hpb=b1ae58cdc578203dedf9377af7c8c6ba225857bc;p=friendica.git diff --git a/static/dependencies.config.php b/static/dependencies.config.php index c9f013a6f4..ea9830679f 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -4,7 +4,9 @@ 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\Core\Session\ISession; use Friendica\Database\Database; use Friendica\Factory; use Friendica\Util; @@ -62,6 +64,7 @@ return [ ], App\Mode::class => [ 'call' => [ + ['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL], ['determine', [], Dice::CHAIN_CALL], ], ], @@ -84,16 +87,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 +116,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], ] @@ -148,4 +162,29 @@ return [ ['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 + ], + ], + ISession::class => [ + 'instanceOf' => Factory\SessionFactory::class, + 'call' => [ + ['createSession', [$_SERVER], Dice::CHAIN_CALL], + ['start', [], Dice::CHAIN_CALL], + ], + ], ];