Refactor API notification usage
- Remove "mapFields()" from BaseModel - Add new Notification API entity (including collection) - Add new NotificationFactory method "getApiList()"
This commit is contained in:
16
src/DI.php
16
src/DI.php
@@ -280,14 +280,6 @@ abstract class DI
|
||||
return self::$dice->create(Model\User\Cookie::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Repository\Notify
|
||||
*/
|
||||
public static function notify()
|
||||
{
|
||||
return self::$dice->create(Repository\Notify::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Model\Storage\IStorage
|
||||
*/
|
||||
@@ -324,6 +316,14 @@ abstract class DI
|
||||
return self::$dice->create(Repository\ProfileField::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Repository\Notify
|
||||
*/
|
||||
public static function notify()
|
||||
{
|
||||
return self::$dice->create(Repository\Notify::class);
|
||||
}
|
||||
|
||||
//
|
||||
// "Protocol" namespace instances
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user