]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Merge pull request #8135 from annando/brief
[friendica.git] / static / dependencies.config.php
index 0a9f1f42e053271fb3b1102ab79ae773f753b255..ec80123aa346b9673d874a88cc2587266eb37c8f 100644 (file)
@@ -4,9 +4,15 @@ 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\Process;
+use Friendica\Core\Session\ISession;
+use Friendica\Core\StorageManager;
 use Friendica\Database\Database;
 use Friendica\Factory;
+use Friendica\Model\Storage\IStorage;
+use Friendica\Model\User\Cookie;
 use Friendica\Util;
 use Psr\Log\LoggerInterface;
 
@@ -66,13 +72,13 @@ return [
                        ['determine', [], Dice::CHAIN_CALL],
                ],
        ],
-       Config\Configuration::class     => [
+       Config\IConfiguration::class     => [
                'instanceOf' => Factory\ConfigFactory::class,
                'call'       => [
                        ['createConfig', [], Dice::CHAIN_CALL],
                ],
        ],
-       Config\PConfiguration::class    => [
+       Config\IPConfiguration::class    => [
                'instanceOf' => Factory\ConfigFactory::class,
                'call'       => [
                        ['createPConfig', [], Dice::CHAIN_CALL],
@@ -80,7 +86,7 @@ return [
        ],
        Database::class                 => [
                'constructParams' => [
-                       [DICE::INSTANCE => \Psr\Log\NullLogger::class],
+                       [Dice::INSTANCE => \Psr\Log\NullLogger::class],
                        $_SERVER,
                ],
        ],
@@ -160,7 +166,7 @@ return [
                        ['determineModule', [], Dice::CHAIN_CALL],
                ],
        ],
-       Friendica\Core\Process::class => [
+       Process::class => [
                'constructParams' => [
                        [Dice::INSTANCE => '$basepath'],
                ],
@@ -170,7 +176,30 @@ return [
                        $_SERVER, null
                ],
                'call' => [
-                       ['addRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_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],
+               ],
+       ],
+       Cookie::class => [
+               'constructParams' => [
+                       $_SERVER, $_COOKIE
+               ],
+       ],
+       IStorage::class => [
+               'instanceOf' => StorageManager::class,
+               'call' => [
+                       ['getBackend', [], Dice::CHAIN_CALL],
                ],
        ],
 ];