policy annotation:PHP框架Neos Flow的策略注释 源码
方法注释中的策略配置 该程序包提供了一种使用@Policy注释对方法进行注释并为角色设置权限的方法。 安装 composer install meteko/policyannotation 配置 格式看起来像这样(取自您可以在此软件包中找到的TestController ) <?php namespace Meteko\PolicyAnnotation\Controller; use Neos\Flow\Mvc\Controller\ActionController; use Meteko\PolicyAnnotation\Annotations\Policy; #!!!This is the imported annotation class TestController extends ActionController { /** * @Policy(role="M
下载地址
用户评论