PHPackages                             eddmash/permission-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. eddmash/permission-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

eddmash/permission-bundle
=========================

Permission and roles bundle

024PHP

Since Sep 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/eddmash/permission-bundle)[ Packagist](https://packagist.org/packages/eddmash/permission-bundle)[ RSS](/packages/eddmash-permission-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony 4 Permission Bundle
===========================

[](#symfony-4-permission-bundle)

Installation
============

[](#installation)

```
composer require eddmash/permission-bundle

```

Configuration
=============

[](#configuration)

```
eddmash_permission:
    user_entity: 'App\Entity\User' # the user entity used by the app
    fetch_admin_callback: 'fetchAdmin' # the method in the specified `user_entity` repositoy
                                       # to use when get the application root admin whose
                                       # granted all permissions.

```

Setting entity permission
=========================

[](#setting-entity-permission)

Use the `@AccessRights` to add permission the will be available to specific models

```
