From c9a5363c171c37692c5f9bfa0c3b67061306367b Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 8 Mar 2017 22:52:42 +0000 Subject: [PATCH] Fix inviting team members. Closes #2411 --- app/Bus/Events/User/UserWasInvitedEvent.php | 23 +++++++-------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/app/Bus/Events/User/UserWasInvitedEvent.php b/app/Bus/Events/User/UserWasInvitedEvent.php index b51d57aa..1df56261 100644 --- a/app/Bus/Events/User/UserWasInvitedEvent.php +++ b/app/Bus/Events/User/UserWasInvitedEvent.php @@ -11,10 +11,16 @@ namespace CachetHQ\Cachet\Bus\Events\User; -use CachetHQ\Cachet\Bus\Events\ActionInterface; use CachetHQ\Cachet\Models\Invite; -final class UserWasInvitedEvent implements ActionInterface, UserEventInterface +/** + * This is the user was invited event class. + * + * @author Joseph Cohen + * @author Graham Campbell + * @author James Brooks + */ +final class UserWasInvitedEvent implements UserEventInterface { /** * The invite that has been added. @@ -44,17 +50,4 @@ final class UserWasInvitedEvent implements ActionInterface, UserEventInterface { return 'User was invited.'; } - - /** - * Get the event action. - * - * @return array - */ - public function getAction() - { - return [ - 'user' => $this->user, - 'description' => (string) $this, - ]; - } }