mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07: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
|
@ -5,6 +5,7 @@ namespace Friendica\Module\Admin;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\BaseAdminModule;
|
||||
|
||||
class Tos extends BaseAdminModule
|
||||
|
@ -29,7 +30,7 @@ class Tos extends BaseAdminModule
|
|||
|
||||
info(L10n::t('The Terms of Service settings have been updated.'));
|
||||
|
||||
self::getApp()->internalRedirect('admin/tos');
|
||||
DI::app()->internalRedirect('admin/tos');
|
||||
}
|
||||
|
||||
public static function content(array $parameters = [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue