11ya / actual-user-bundle
Symfony扩展包,用于在用户角色变更后刷新用户角色
dev-master
2016-11-29 21:05 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: ~2.1|~3.0
- symfony/security: ~2.1|~3.0
Suggests
- doctrine/doctrine-bundle: Using with Doctrine ORM
- doctrine/mongodb-odm-bundle: Using with Doctrine MongoDB ODM
- friendsofsymfony/user-bundle: Easy to use and override default provider and entity classes
This package is not auto-updated.
Last update: 2024-09-28 19:58:17 UTC
README
本扩展包提供了一种在用户角色变更后刷新用户角色的机会,而无需重新认证
安装
1. 使用composer安装此扩展包
$ composer require 11ya/actual-user-bundle:dev-master
或直接将包添加到您的composer.json
文件中。
2. 在app/AppKernel.php
中注册此扩展包
$bundles = array( // ... new Ilya\ActualUserBundle\IlyaActualUserBundle(), );
使用
- 在您的User类中实现ActualUserInterface。
- 修改安全配置以使用自定义提供者服务
- 享受吧!