]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Avoid contact update for non federated networks
[friendica.git] / static / dependencies.config.php
index e32f99a60ca9a0ee3f7ce5ce54f19f332b49969a..fbc085f4bc347dcc8dae17fecb7cb3eb79e29b61 100644 (file)
@@ -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' => [
-                       ['determineBackend', [$_SERVER], Dice::CHAIN_CALL],
+                       ['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL],
                        ['determine', [], Dice::CHAIN_CALL],
                ],
        ],
@@ -95,6 +96,11 @@ return [
                        $_SERVER,
                ],
        ],
+       App\Page::class => [
+               'constructParams' => [
+                       [Dice::INSTANCE => '$basepath'],
+               ],
+       ],
        /**
         * Create a Logger, which implements the LoggerInterface
         *
@@ -109,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],
                ]
@@ -149,4 +161,22 @@ 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
+               ],
+       ],
 ];