]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Merge pull request #11100 from nupplaphil/bug/session_cache
[friendica.git] / static / dependencies.config.php
index 46463de61e0de1f47056254fcfac53d7d663386e..e88bfd14373e4f52f1474f99b8301f1b963e18de 100644 (file)
@@ -40,7 +40,6 @@ use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\L10n;
 use Friendica\Core\Lock;
-use Friendica\Core\Process;
 use Friendica\Core\Session\Capability\IHandleSessions;
 use Friendica\Core\Storage\Repository\StorageManager;
 use Friendica\Database\Database;
@@ -161,13 +160,13 @@ return [
        Cache\Capability\ICanCache::class => [
                'instanceOf' => Cache\Factory\Cache::class,
                'call'       => [
-                       ['create', [], Dice::CHAIN_CALL],
+                       ['createLocal', [], Dice::CHAIN_CALL],
                ],
        ],
        Cache\Capability\ICanCacheInMemory::class => [
                'instanceOf' => Cache\Factory\Cache::class,
                'call'       => [
-                       ['create', [], Dice::CHAIN_CALL],
+                       ['createLocal', [], Dice::CHAIN_CALL],
                ],
        ],
        Lock\Capability\ICanLock::class => [
@@ -182,12 +181,6 @@ return [
                        ['determine', [$_SERVER, $_GET], Dice::CHAIN_CALL],
                ],
        ],
-       App\Module::class => [
-               'instanceOf' => App\Module::class,
-               'call' => [
-                       ['determineModule', [], Dice::CHAIN_CALL],
-               ],
-       ],
        \Friendica\Core\System::class => [
                'constructParams' => [
                        [Dice::INSTANCE => '$basepath'],
@@ -197,6 +190,7 @@ return [
                'constructParams' => [
                        $_SERVER,
                        __DIR__ . '/routes.config.php',
+                       [Dice::INSTANCE => Dice::SELF],
                        null
                ],
        ],
@@ -239,4 +233,9 @@ return [
                        [Dice::INSTANCE => Util\ReversedFileReader::class],
                ]
        ],
+       \Friendica\Core\Worker\Repository\Process::class => [
+               'constructParams' => [
+                       $_SERVER
+               ],
+       ],
 ];