mirror of
https://github.com/friendica/friendica
synced 2025-05-05 21:44:11 +02:00
Create new DI shorthands for notification-related factories
This commit is contained in:
parent
7a2d5f6a8e
commit
8a1a2f658c
4 changed files with 19 additions and 9 deletions
|
@ -82,7 +82,7 @@ class PushSubscription
|
|||
}
|
||||
}
|
||||
|
||||
$message = (new Notifications\Factory\Notification(DI::logger()))->getMessageFromNotification($Notification, DI::baseUrl(), $l10n);
|
||||
$message = DI::notificationFactory()->getMessageFromNotification($Notification, DI::baseUrl(), $l10n);
|
||||
$title = $message['plain'] ?: '';
|
||||
|
||||
$push = Subscription::create([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue