gpt4 book ai didi

cakephp 3 中的授权和 ACL

转载 作者:行者123 更新时间:2023-12-04 11:51:10 25 4
gpt4 key购买 nike

我搜索了文档,但在 cakephp 3 中没有找到任何关于 ACL 实现的信息。
如何在 cakephp 3 中使用 ACL 实现授权?

最佳答案

ACL 不像 CakePHP 2 那样内置在 CakePHP 3 中。它现在可以作为一个单独的插件使用。

Quote from http://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html

ACL related classes were moved to a separate plugin. Password hashers,Authentication and Authorization providers where moved to the\Cake\Auth namespace. You are required to move your providers andhashers to the App\Auth namespace as well.


您可以在 https://github.com/cakephp/acl 找到该插件,但请注意,它还不稳定。

关于cakephp 3 中的授权和 ACL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27728798/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com