mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:50: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\Logs;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\BaseAdminModule;
|
||||
use Friendica\Util\Strings;
|
||||
use Psr\Log\LogLevel;
|
||||
|
@ -34,14 +35,14 @@ class Settings extends BaseAdminModule
|
|||
}
|
||||
|
||||
info(L10n::t("Log settings updated."));
|
||||
self::getApp()->internalRedirect('admin/logs');
|
||||
DI::app()->internalRedirect('admin/logs');
|
||||
}
|
||||
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
parent::content($parameters);
|
||||
|
||||
$a = self::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
$log_choices = [
|
||||
LogLevel::ERROR => 'Error',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue