smoren / yii2-module-access-manager
Yii2 的访问管理和控制模块
v0.2.0
2024-05-17 12:07 UTC
Requires
- php: >=7.2.0
- ext-json: *
- smoren/extended-exceptions: ^1.0.0
- smoren/mushroom-hook-manager: ^1.0.0
- smoren/yii2-active-record-explicit: ^1.0.4|^2.0.0
- smoren/yii2-auth-components: ^0.1.5
- smoren/yii2-helpers: ^0.1.0
- thamtech/yii2-uuid: ^1.2
- yiisoft/yii2: ~2.0.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-17 12:46:32 UTC
README
Yii2 的访问管理和控制模块
如何安装到 Yii2 项目
composer require smoren/yii2-module-access-manager
安装后
将其包含到 Yii2 配置中
...
'modules' => [
...
'access' => ['class' => 'Smoren\Yii2\AccessManager\Module'],
],
...
'bootstrap' => [
...
'access',
],
...
'controllerMap' => [
'migrate' => [
'class' => MigrateController::class,
'migrationPath' => [
...
'vendor/smoren/yii2-module-access-manager/src/migrations',
],
],
],
...
然后运行迁移
php yii migrate
如果您已经有了名为 "access" 的模块,也可以选择另一个模块 ID。