Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class Module extends \yii\base\Module |
||
13 | { |
||
14 | /** |
||
15 | * Время в сек, когда пользователей со статусом "Ожидает", можно удалять |
||
16 | * В основном для Cron задачи. |
||
17 | * ``` |
||
18 | * php yii users/cron/remove-overdue |
||
19 | * ``` |
||
20 | * @var int |
||
21 | */ |
||
22 | public $emailConfirmTokenExpire = 259200; // 3 days |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | public $controllerNamespace = 'modules\users\controllers'; |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function init() |
||
33 | { |
||
34 | parent::init(); |
||
35 | $this->setViewPath('@modules/users/views'); |
||
36 | if (Yii::$app instanceof ConsoleApplication) { |
||
37 | $this->controllerNamespace = 'modules\users\commands'; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $category |
||
43 | * @param string $message |
||
44 | * @param array $params |
||
45 | * @param null|string $language |
||
46 | * @return string |
||
47 | */ |
||
48 | public static function t($category, $message, $params = [], $language = null) |
||
51 | } |
||
52 | } |
||
53 |