| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Module extends \yii\base\Module |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | public $emailConfirmTokenExpire = 259200; // 3 days |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @inheritdoc |
||
| 21 | */ |
||
| 22 | public $controllerNamespace = 'modules\users\controllers'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function init() |
||
| 28 | { |
||
| 29 | parent::init(); |
||
| 30 | $this->setViewPath('@modules/users/views'); |
||
| 31 | if (Yii::$app instanceof ConsoleApplication) { |
||
| 32 | $this->controllerNamespace = 'modules\users\commands'; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $category |
||
| 38 | * @param string $message |
||
| 39 | * @param array $params |
||
| 40 | * @param null|string $language |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public static function t($category, $message, $params = [], $language = null) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |