I need to create my own permissionmap in Symfony3. I updated Symfony2.8 to 3.2 and now my own PermissionMap class is not being used anymore.
In 2.8 I could do:
parameters:
security.acl.permission.map.class: UserBundle\Permission\PermissionMap
This is not working in 3.2 anymore. Anyone know how I can use my custom PermissionMap in 3.2 ?
This parameter security.acl.permission.map.class
has been removed in Symfony 3. Now you should decorate the security.acl.permission.map
service instead:
# config.yml
services:
security.acl.permission.map:
class: UserBundle\Permission\PermissionMap
See https://github.com/symfony/symfony/pull/14070/files#diff-cb370dc553bc7472fa2594a068a94404 for more details about these changes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.