PHPackages                             dcs/role-provider-array-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. dcs/role-provider-array-bundle

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

dcs/role-provider-array-bundle
==============================

The DCSRoleProviderArrayBundle provides the management of the roles with an array configuration

06PHP

Since Dec 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/damianociarla/DCSRoleProviderArrayBundle)[ Packagist](https://packagist.org/packages/dcs/role-provider-array-bundle)[ RSS](/packages/dcs-role-provider-array-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/6176fb95ed1505e39fc2f448936b5ad80e23f635f11ad3b888f8ccdb620791bc/68747470733a2f2f7472617669732d63692e6f72672f64616d69616e6f636961726c612f444353526f6c6550726f7669646572417272617942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/damianociarla/DCSRoleProviderArrayBundle) [![Coverage Status](https://camo.githubusercontent.com/ab142a023f1016a6db3f5bc9c45a14f7a287c7ba547daabd41f2ab524a1b81c8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64616d69616e6f636961726c612f444353526f6c6550726f7669646572417272617942756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/damianociarla/DCSRoleProviderArrayBundle?branch=master)

DCSRoleProviderArrayBundle
==========================

[](#dcsroleproviderarraybundle)

This bundle provides the provider implementation for [DCSRoleCoreBundle](https://github.com/damianociarla/DCSRoleCoreBundle). The logic of this provider revolves around the role management through array. Then the database of roles available in the application will be configured in the bundle settings.

There is a trait [(UserRoleArray)](https://github.com/damianociarla/DCSRoleProviderArrayBundle/blob/master/src/Model/UserRoleArray.php) that will expose some utility methods for role management to use in the implementation of the **User** class.

Installation
------------

[](#installation)

### Prerequisites

[](#prerequisites)

This bundle requires [DCSRoleCoreBundle](https://github.com/damianociarla/DCSRoleCoreBundle).

### Require the bundle

[](#require-the-bundle)

Run the following command:

```
$ composer require dcs/role-provider-array-bundle "~1.0@dev"

```

Composer will install the bundle to your project's `vendor/dcs/role-provider-array-bundle` directory.

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle in the kernel:

```
