mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23: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
15
src/DI.php
15
src/DI.php
|
@ -463,11 +463,26 @@ abstract class DI
|
|||
return self::$dice->create(Navigation\Notifications\Depository\Notification::class);
|
||||
}
|
||||
|
||||
public static function notificationFactory(): Navigation\Notifications\Factory\Notification
|
||||
{
|
||||
return self::$dice->create(Navigation\Notifications\Factory\Notification::class);
|
||||
}
|
||||
|
||||
public static function notify(): Navigation\Notifications\Depository\Notify
|
||||
{
|
||||
return self::$dice->create(Navigation\Notifications\Depository\Notify::class);
|
||||
}
|
||||
|
||||
public static function notifyFactory(): Navigation\Notifications\Factory\Notify
|
||||
{
|
||||
return self::$dice->create(Navigation\Notifications\Factory\Notify::class);
|
||||
}
|
||||
|
||||
public static function formattedNotificationFactory(): Navigation\Notifications\Factory\FormattedNotification
|
||||
{
|
||||
return self::$dice->create(Navigation\Notifications\Factory\FormattedNotification::class);
|
||||
}
|
||||
|
||||
//
|
||||
// "Protocol" namespace instances
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue