add events + more wip classes
This commit is contained in:
31
lib/User/Event/ResetPasswordEvent.php
Normal file
31
lib/User/Event/ResetPasswordEvent.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
namespace Da\User\Event;
|
||||
|
||||
|
||||
use Da\User\Form\RecoveryForm;
|
||||
use Da\User\Model\Token;
|
||||
use yii\base\Event;
|
||||
|
||||
class ResetPasswordEvent extends Event
|
||||
{
|
||||
protected $form;
|
||||
protected $token;
|
||||
|
||||
public function __construct(RecoveryForm $form, Token $token, array $config = [])
|
||||
{
|
||||
$this->form = $form;
|
||||
$this->token = $token;
|
||||
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
public function getForm()
|
||||
{
|
||||
return $this->form;
|
||||
}
|
||||
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user