mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
Convert class calls into DI calls
This commit is contained in:
parent
5aa798b1dc
commit
49c47008d1
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue