PHPackages                             concepture/yii2-user-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. concepture/yii2-user-module

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

concepture/yii2-user-module
===========================

package under development

v4.0.7(5y ago)23.3k12MITPHPPHP &gt;=5.6.0CI failing

Since Dec 10Pushed 5y ago3 watchersCompare

[ Source](https://github.com/exgamer/yii2-user-module)[ Packagist](https://packagist.org/packages/concepture/yii2-user-module)[ RSS](/packages/concepture-yii2-user-module/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (16)Used By (2)

yii2-user-module
================

[](#yii2-user-module)

concepture\_engine
==================

[](#concepture_engine)

composer.json

```
"require": {
    "concepture/core" : "*",
    "concepture/yii2-core" : "*",
    "concepture/yii2-user" : "*"
}
"extra": {
    "bootstrap": "concepture\\user\\Bootstrap"
},
"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    },
    {
        "type": "path",
        "url": "concepture/yii2-user",
        "options": {
            "symlink": true
        }
    }
]

```

Подключение

"require": { "concepture/yii2-user-module" : "dev-master" },

Миграции php yii migrate/up --migrationPath=@concepture/yii2user/console/migrations --interactive=0 php yii migrate --migrationPath=@yii/rbac/migrations --interactive=0

Подключение модуля для админки

```
 'modules' => [
     'user' => [
         'class' => 'concepture\yii2user\Module'
     ],
 ],

```

Для переопределния контроллера добавялем в настройки модуля

```
 'modules' => [
     'static' => [
        'class' => 'concepture\yii2user\Module',
        'controllerMap' => [
            'user' => 'backend\controllers\UserController'
        ],
     ],
 ],

```

Для переопределния папки с представленяими добавялем в настройки модуля

```
 'modules' => [
     'static' => [
         'class' => 'concepture\yii2user\Module',
         'viewPath' => '@backend/views'
     ],
 ],

```

Для переопределния любого класса можно вооспользоваться инекцией зависимостей через config.php К примеру подменить модель StaticBlock на свой

```
