2016-05-16 04:03:19 +05:30
|
|
|
<?php
|
|
|
|
namespace common\models\confirmations;
|
|
|
|
|
|
|
|
use common\models\EmailActivation;
|
|
|
|
use yii\helpers\ArrayHelper;
|
|
|
|
|
|
|
|
/**
|
2019-07-15 04:29:56 +05:30
|
|
|
* Behaviors:
|
2016-05-16 04:03:19 +05:30
|
|
|
* @mixin NewEmailConfirmationBehavior
|
|
|
|
*/
|
|
|
|
class NewEmailConfirmation extends EmailActivation {
|
|
|
|
|
|
|
|
public function behaviors() {
|
|
|
|
return ArrayHelper::merge(parent::behaviors(), [
|
|
|
|
'expirationBehavior' => [
|
2018-04-18 02:17:25 +05:30
|
|
|
'repeatTimeout' => 5 * 60,
|
2016-05-16 04:03:19 +05:30
|
|
|
],
|
|
|
|
'dataBehavior' => [
|
|
|
|
'class' => NewEmailConfirmationBehavior::class,
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function init() {
|
|
|
|
parent::init();
|
|
|
|
$this->type = EmailActivation::TYPE_NEW_EMAIL_CONFIRMATION;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|