Files
yii2-usuario/lib/User/Event/FormEvent.php
Antonio Ramirez 3ba01b4674 fix formatting
2016-12-14 02:50:12 +01:00

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;
}
}