Convert class calls into DI calls

This commit is contained in:
Michael 2022-05-19 09:08:04 +00:00
parent 5aa798b1dc
commit 49c47008d1
2 changed files with 4 additions and 6 deletions

View file

@ -308,7 +308,7 @@ class UserNotification
return;
}
$notification = (new Notifications\Factory\Notification(DI::baseUrl(), DI::l10n(), DI::localRelationship(), DI::logger()))->createForUser(
$notification = DI::notificationFactory()->createForUser(
$uid,
$item['vid'],
$type,
@ -336,7 +336,7 @@ class UserNotification
*/
public static function insertNotification(int $actor, string $verb, int $uid): bool
{
$notification = (new Notifications\Factory\Notification(DI::baseUrl(), DI::l10n(), DI::localRelationship(), DI::logger()))->createForRelationship(
$notification = DI::notificationFactory()->createForRelationship(
$uid,
$actor,
$verb