PHPackages                             meteko/policyannotation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. meteko/policyannotation

ActiveNeos-package[Security](/categories/security)

meteko/policyannotation
=======================

70PHP

Since Mar 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sorenmalling/policy-annotation)[ Packagist](https://packagist.org/packages/meteko/policyannotation)[ RSS](/packages/meteko-policyannotation/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Policy configuration from method annotation
===========================================

[](#policy-configuration-from-method-annotation)

The package provides a way to annotate methods with a `@Policy` annotation and set permission for a role.

Install
-------

[](#install)

```
composer install meteko/policyannotation

```

Configuration
-------------

[](#configuration)

The format looks like this (taken from the `TestController` you can find in this package)

```
