jield-webdev/jield-authorize
最新稳定版本:v2.1
Composer 安装命令:
composer require jield-webdev/jield-authorize
包简介
Small helper module to integrate BjyAuthorize (the kokspflanze/bjy-authorize fork) with dynamic assertions, which cannot be serialized
README 文档
README
Small helper module to integrate BjyAuthorize (the kokspflanze/bjy-authorize fork) with dynamic assertions, which cannot be serialized
Default config file
The access_service has to implement AccessRolesByUser interface and permit_service the HasPermitInterface
the User class has to implement UserAsRoleInterface and the role class RoleInterface
Make sure that 'BjyAuthorize' is enabled before 'Jield\Authorize' in module.config
namespace BjyAuthorize; use Admin\Entity\Role; use Admin\Service\UserService; return [ 'jield_authorize' => [ 'default_role' => Role::ROLE_PUBLIC, 'authenticated_role' => Role::ROLE_USER, 'access_service' => UserService::class, 'permit_service' => UserService::class, 'cache_enabled' => false, 'role_entity_class' => Role::class, ], ];
统计信息
- 总下载量: 20.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-10