Fix inviting team members. Closes #2411

This commit is contained in:
James Brooks
2017-03-08 22:52:42 +00:00
parent 2742797897
commit c9a5363c17

View File

@@ -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 <joealt-three.com>
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
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,
];
}
}