Refactor dynamic App::getLogger() to static DI::logger()

This commit is contained in:
nupplaPhil 2019-12-15 23:46:56 +01:00
parent fceb4f3823
commit e2b2778e0a
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
9 changed files with 11 additions and 22 deletions

View file

@ -18,9 +18,8 @@ class Nodeinfo
*/
public static function update()
{
$app = DI::app();
$config = DI::config();
$logger = $app->getLogger();
$logger = DI::logger();
// If the addon 'statistics_json' is enabled then disable it and activate nodeinfo.
if (Addon::isEnabled('statistics_json')) {