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

ActiveSymfony-bundle

dcs/role-core-bundle
====================

The DCSRoleCoreBundle provides the basic services for the role management

0423[2 issues](https://github.com/damianociarla/DCSRoleCoreBundle/issues)[1 PRs](https://github.com/damianociarla/DCSRoleCoreBundle/pulls)PHP

Since Dec 31Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f932aba9541e5fbfbc8dff228d131544c995eb8310115c8ebcf8c512c01219e1/68747470733a2f2f7472617669732d63692e6f72672f64616d69616e6f636961726c612f444353526f6c65436f726542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/damianociarla/DCSRoleCoreBundle) [![Coverage Status](https://camo.githubusercontent.com/f1e4653b77f270d49d6559803bcc7c98906fe73e5f8f984cc50481ff86f9d856/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64616d69616e6f636961726c612f444353526f6c65436f726542756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/damianociarla/DCSRoleCoreBundle?branch=master)

DCSRoleCoreBundle
=================

[](#dcsrolecorebundle)

This bundle provides the basic services for the role management. Also it provides an option to set a default user role during the authentication process.

The base configuration requires that you specify the provider for the recovery of roles. They were made available two providers to install:

[DCSRoleProviderORMBundle](https://github.com/damianociarla/DCSRoleProviderORMBundle)Provider for the management of user roles using Doctrine ORM.

[DCSRoleProviderArrayBundle](https://github.com/damianociarla/DCSRoleProviderArrayBundle)Provider for the management of user roles using an array.

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

[](#installation)

### Prerequisites

[](#prerequisites)

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

### Require the bundle

[](#require-the-bundle)

Run the following command:

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

```

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

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle in the kernel:

```
