mirror of
https://github.com/flarum/core.git
synced 2025-10-22 20:26:15 +02:00
Revert BC breaks around notification blueprints
No need for breaking backwards compatibility here - encapsulating the logic for `getAttributes()` in one place turns out to be quite useful. Refs #1931.
This commit is contained in:
@@ -22,7 +22,6 @@ interface BlueprintInterface
|
||||
/**
|
||||
* Get the user that sent the notification.
|
||||
*
|
||||
* @deprecated Will be removed for beta.14
|
||||
* @return User|null
|
||||
*/
|
||||
public function getFromUser();
|
||||
@@ -30,7 +29,6 @@ interface BlueprintInterface
|
||||
/**
|
||||
* Get the model that is the subject of this activity.
|
||||
*
|
||||
* @deprecated Will be removed for beta.14
|
||||
* @return AbstractModel|null
|
||||
*/
|
||||
public function getSubject();
|
||||
@@ -38,19 +36,10 @@ interface BlueprintInterface
|
||||
/**
|
||||
* Get the data to be stored in the notification.
|
||||
*
|
||||
* @deprecated Will be removed for beta.14
|
||||
* @return array|null
|
||||
*/
|
||||
public function getData();
|
||||
|
||||
/**
|
||||
* Get the attributes that uniquely identify a notification, plus metadata.
|
||||
* TODO: Uncomment this for beta.14.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
//public function getAttributes(): array;
|
||||
|
||||
/**
|
||||
* Get the serialized type of this activity.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user