Download the PHP package concepture/yii2-user-module without Composer
On this page you can find all versions of the php package concepture/yii2-user-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-user-module
yii2-user-module
concepture_engine
https://klisl.com/yii2-extension.html
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 на свой
<?php
return [
'container' => [
'definitions' => [
'concepture\yii2static\models\StaticBlock' => ['class' => 'backend\models\StaticBlock'],
],
],
]
All versions of yii2-user-module with dependencies
yiisoft/yii2 Version 2.0.29
yiisoft/yii2-jui Version ~2.0.0
yiisoft/yii2-authclient Version 2.2.7