30 lines
628 B
PHP
30 lines
628 B
PHP
<?php
|
|
namespace Da\User\Event;
|
|
|
|
use yii\base\Event;
|
|
use yii\base\Model;
|
|
|
|
class FormEvent extends Event
|
|
{
|
|
const EVENT_BEFORE_REQUEST = 'beforeRequest';
|
|
const EVENT_AFTER_REQUEST = 'afterRequest';
|
|
const EVENT_BEFORE_RESEND = 'beforeResend';
|
|
const EVENT_AFTER_RESEND = 'afterResend';
|
|
const EVENT_BEFORE_LOGIN = 'beforeLogin';
|
|
const EVENT_AFTER_LOGIN = 'afterLogin';
|
|
|
|
protected $form;
|
|
|
|
public function __construct(Model $form, array $config = [])
|
|
{
|
|
$this->form = $form;
|
|
parent::__construct($config);
|
|
}
|
|
|
|
public function getForm()
|
|
{
|
|
return $this->form;
|
|
}
|
|
}
|
|
|