ns/simple-user-bundle
Composer 安装命令:
composer require ns/simple-user-bundle
包简介
Basic pre-configured user admin and auth bundle for NSAdminBundle
README 文档
README
Basic pre-configured user admin and auth bundle for NSAdminBundle
##Installation
Require SimpleUserBundle
composer require ns/simple-user-bundle
add it to your project bundles.php
NS\SimpleUserBundle\NSSimpleUserBundle::class => ['all' => true],
and require the routing config in your project routes.yaml file. NOTE: The SimpleUserBundle routes must be included before the AdminBundle routes.
ns_simple_user: resource: "@NSSimpleUserBundle/Resources/config/routing.yml" prefix: / ns_admin: resource: "@NSAdminBundle/Resources/config/routing.yml" prefix: /admin
Update your project security.yaml file:
security: encoders: NS\SimpleUserBundle\Security\SecurityUser: algorithm: bcrypt NS\SimpleUserBundle\Entity\User\User: algorithm: bcrypt providers: app: id: NS\SimpleUserBundle\Security\SecurityUserProvider firewalls: main: form_login: login_path: login check_path: login_check logout: path: logout target: login access_control: - { path: ^/logout$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
The user admin list can be accessed with the admin_user_list route.
统计信息
- 总下载量: 173
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-06-24