meteko/policyannotation
composer require meteko/policyannotation
dev-master
Readme excerpt
Policy configuration from method annotationThe package provides a way to annotate methods with a @Policy annotation and set permission for a role.
Install composer install meteko/policyannotation ConfigurationThe format looks like this (taken from the TestController you can find in this package)
<?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="Meteko.PolicyAnnotation:TestRole", permission="grant") */ public function indexAction() { …Read more
The same vendor provides 7 package(s).