mirror of
https://github.com/friendica/friendica
synced 2025-04-20 11:10:11 +00:00
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class
This commit is contained in:
parent
a9220aa83b
commit
1de3f186d7
132 changed files with 377 additions and 270 deletions
|
@ -14,6 +14,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\DI;
|
||||
|
||||
class Tos extends BaseModule
|
||||
{
|
||||
|
@ -50,7 +51,7 @@ class Tos extends BaseModule
|
|||
public static function init(array $parameters = [])
|
||||
{
|
||||
if (strlen(Config::get('system','singleuser'))) {
|
||||
self::getApp()->internalRedirect('profile/' . Config::get('system','singleuser'));
|
||||
DI::app()->internalRedirect('profile/' . Config::get('system','singleuser'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue