New events and their handlers for user activation and other things.

This commit is contained in:
James Cole
2016-03-29 11:55:25 +02:00
parent 08b8bd27f9
commit 3adccff611
4 changed files with 147 additions and 2 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* ResendConfirmation.php
* Copyright (C) 2016 Sander Dorigo
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Events;
use FireflyIII\User;
use Illuminate\Queue\SerializesModels;
/**
* Class ResendConfirmation
*
* @package FireflyIII\Events
*/
class ResendConfirmation extends Event
{
use SerializesModels;
public $ip;
public $user;
/**
* Create a new event instance.
*
* @param User $user
*
* @param string $ip
*/
public function __construct(User $user, string $ip)
{
$this->user = $user;
$this->ip = $ip;
}
}

View File

@@ -27,9 +27,9 @@ class UserRegistration extends Event
/**
* Create a new event instance.
*
* @param User $user
* @param User $user
*
* @return void
* @param string $ip
*/
public function __construct(User $user, string $ip)
{