我搜索了文档,但没有找到有关 cakephp 3 中 ACL 实现的任何信息。
如何在 cakephp 3 中使用 ACL 实现授权?
ACL 不像 CakePHP 2 那样内置在 CakePHP 3 中。它现在作为单独的插件提供。
引用自http://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html http://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html
ACL 相关类已移至单独的插件中。密码哈希器,
身份验证和授权提供商移至
\Cake\Auth 命名空间。您需要移动您的提供商并
散列器也到 App\Auth 命名空间。
您可以在以下位置找到该插件https://github.com/cakephp/acl https://github.com/cakephp/acl,但请注意它还不稳定。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)