mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +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\Blocklist;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\BaseAdminModule;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
|
@ -47,14 +48,14 @@ class Server extends BaseAdminModule
|
|||
info(L10n::t('Site blocklist updated.') . EOL);
|
||||
}
|
||||
|
||||
self::getApp()->internalRedirect('admin/blocklist/server');
|
||||
DI::app()->internalRedirect('admin/blocklist/server');
|
||||
}
|
||||
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
parent::content($parameters);
|
||||
|
||||
$a = self::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
$blocklist = Config::get('system', 'blocklist');
|
||||
$blocklistform = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue