2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @var $faker \Faker\Generator
|
|
|
|
* @var $index integer
|
|
|
|
*/
|
|
|
|
|
|
|
|
$security = Yii::$app->getSecurity();
|
|
|
|
|
|
|
|
return [
|
2016-01-21 02:44:29 +05:30
|
|
|
'uuid' => $faker->uuid,
|
2016-01-02 19:13:18 +05:30
|
|
|
'username' => $faker->userName,
|
|
|
|
'email' => $faker->email,
|
|
|
|
'password_hash' => $security->generatePasswordHash('password_' . $index),
|
2016-01-21 02:44:29 +05:30
|
|
|
'password_hash_strategy' => \common\models\Account::PASS_HASH_STRATEGY_YII2,
|
2016-05-13 14:33:00 +05:30
|
|
|
'lang' => 'en',
|
2016-01-21 02:44:29 +05:30
|
|
|
'auth_key' => $security->generateRandomString(),
|
|
|
|
'status' => \common\models\Account::STATUS_ACTIVE,
|
2016-01-02 19:13:18 +05:30
|
|
|
'created_at' => time(),
|
|
|
|
'updated_at' => time(),
|
|
|
|
];
|