tbaronnat/security-bundle
最新稳定版本:v2.0.0
Composer 安装命令:
composer require tbaronnat/security-bundle
包简介
Simple security bundle system with Symfony integration
README 文档
README
Example implementation :
Override default SecurityManager to add or exclude routes paths :
services.yaml :
tbaronnat.manager.security:
class: App\Manager\YourOwnSecurityManagerThatExtendsAbstractSecurityManager
arguments:
- '@router'
public: true
Override default SecurityListener to overide method "supports" and apply security for specific routes :
services.yaml :
tbaronnat.listener.admin.security:
class: App\Listener\YourOwnSecurityListenerThatExtendsSecurityListener
arguments:
- '@tbaronnat.manager.security'
public: true
tags:
- { name: kernel.event_listener, event: kernel.request, method: onKernelRequest }
Entities :
User class must implements :
TBaronnat\SecurityBundle\Entity\SecurityUserInterface
Groups class must implements :
TBaronnat\SecurityBundle\Entity\SecurityGroupInterface
That IT
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-07