]> git.mxchange.org Git - friendica.git/blobdiff - static/dependencies.config.php
Remove deprecated App::cmd - replace with DI::args()->getCommand()
[friendica.git] / static / dependencies.config.php
index 938b13495b56cd6db6bd8ff9f2a062b600b74433..ea9830679f426d74a609bc34407e74da2d83d006 100644 (file)
@@ -6,6 +6,7 @@ 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;
@@ -171,7 +172,7 @@ return [
                        $_SERVER, null
                ],
                'call' => [
-                       ['addRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL],
+                       ['loadRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL],
                ],
        ],
        L10n::class => [
@@ -179,4 +180,11 @@ return [
                        $_SERVER, $_GET
                ],
        ],
+       ISession::class => [
+               'instanceOf' => Factory\SessionFactory::class,
+               'call' => [
+                       ['createSession', [$_SERVER], Dice::CHAIN_CALL],
+                       ['start', [], Dice::CHAIN_CALL],
+               ],
+       ],
 ];