Add event action storage. Closes #2344
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace CachetHQ\Cachet\Bus\Events\User;
|
||||
|
||||
use CachetHQ\Cachet\Bus\Events\ActionInterface;
|
||||
use CachetHQ\Cachet\Models\Invite;
|
||||
use CachetHQ\Cachet\Models\User;
|
||||
|
||||
@@ -19,7 +20,7 @@ use CachetHQ\Cachet\Models\User;
|
||||
*
|
||||
* @author James Brooks <james@alt-three.com>
|
||||
*/
|
||||
final class UserAcceptedInviteEvent implements UserEventInterface
|
||||
final class UserAcceptedInviteEvent implements ActionInterface, UserEventInterface
|
||||
{
|
||||
/**
|
||||
* The user that accepted the invite.
|
||||
@@ -58,4 +59,17 @@ final class UserAcceptedInviteEvent implements UserEventInterface
|
||||
{
|
||||
return 'User accepted invite.';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the event action.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAction()
|
||||
{
|
||||
return [
|
||||
'user' => $this->user,
|
||||
'description' => (string) $this,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user