mirror of
https://github.com/elyby/accounts.git
synced 2024-10-31 07:53:02 +05:30
30 lines
683 B
PHP
30 lines
683 B
PHP
|
<?php
|
||
|
namespace common\models\confirmations;
|
||
|
|
||
|
use common\models\EmailActivation;
|
||
|
use yii\helpers\ArrayHelper;
|
||
|
|
||
|
/**
|
||
|
* Поведения:
|
||
|
* @mixin NewEmailConfirmationBehavior
|
||
|
*/
|
||
|
class NewEmailConfirmation extends EmailActivation {
|
||
|
|
||
|
public function behaviors() {
|
||
|
return ArrayHelper::merge(parent::behaviors(), [
|
||
|
'expirationBehavior' => [
|
||
|
'repeatTimeout' => 5 * 60,
|
||
|
],
|
||
|
'dataBehavior' => [
|
||
|
'class' => NewEmailConfirmationBehavior::class,
|
||
|
],
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
public function init() {
|
||
|
parent::init();
|
||
|
$this->type = EmailActivation::TYPE_NEW_EMAIL_CONFIRMATION;
|
||
|
}
|
||
|
|
||
|
}
|