mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00: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
|
@ -46,8 +46,7 @@ class Notifications extends BaseNotifications
|
|||
$notificationHeader = '';
|
||||
$notifications = [];
|
||||
|
||||
/** @var \Friendica\Navigation\Notifications\Factory\FormattedNotification $factory */
|
||||
$factory = DI::getDice()->create(\Friendica\Navigation\Notifications\Factory\FormattedNotification::class);
|
||||
$factory = DI::formattedNotificationFactory();
|
||||
|
||||
if ((DI::args()->get(1) == 'network')) {
|
||||
$notificationHeader = DI::l10n()->t('Network Notifications');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue