]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Merge pull request #12782 from annando/c2s-2
[friendica.git] / static / dependencies.config.php
index 6feb76989b19c5e9a317992957a7fe3bdf8fe9e1..5b7a345685947cc179634285914fc1fd5a6aecf8 100644 (file)
@@ -37,6 +37,8 @@ use Dice\Dice;
 use Friendica\App;
 use Friendica\Core\Cache;
 use Friendica\Core\Config;
+use Friendica\Core\Hooks\Capabilities\ICanManageInstances;
+use Friendica\Core\Hooks\Model\InstanceManager;
 use Friendica\Core\PConfig;
 use Friendica\Core\L10n;
 use Friendica\Core\Lock;
@@ -76,6 +78,12 @@ return [
                        $_SERVER
                ]
        ],
+       ICanManageInstances::class => [
+               'instanceOf' => InstanceManager::class,
+               'constructParams' => [
+                       [Dice::INSTANCE => Dice::SELF],
+               ],
+       ],
        Config\Util\ConfigFileManager::class => [
                'instanceOf' => Config\Factory\Config::class,
                'call'       => [
@@ -94,7 +102,9 @@ return [
        App\Mode::class              => [
                'call' => [
                        ['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL],
-                       ['determine', [], Dice::CHAIN_CALL],
+                       ['determine', [
+                               [Dice::INSTANCE => '$basepath']
+                       ], Dice::CHAIN_CALL],
                ],
        ],
        Config\Capability\IManageConfigValues::class => [