2017 © Pedro Peláez
 

symfony-bundle role-provider-array-bundle

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

image

dcs/role-provider-array-bundle

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

  • Saturday, December 31, 2016
  • by damianociarla
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status Coverage Status, (*1)

DCSRoleProviderArrayBundle

This bundle provides the provider implementation for 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., (*2)

There is a trait (UserRoleArray) that will expose some utility methods for role management to use in the implementation of the User class., (*3)

Installation

Prerequisites

This bundle requires DCSRoleCoreBundle., (*4)

Require the bundle

Run the following command:, (*5)

$ 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., (*6)

Enable the bundle

Enable the bundle in the kernel:, (*7)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new DCS\Role\Provider\ArrayBundle\DCSRoleProviderArrayBundle(),
        // ...
    );
}

Configure

Now that you have properly enabled this bundle, the next step is to configure it to work with the specific needs of your application., (*8)

Add the following configuration to your config.yml., (*9)

dcs_role_provider_array:
    roles: LIST_OF_ROLES_AS_ARRAY

The following lines provide the configuration for the DCSRoleCoreBundle., (*10)

dcs_role_core:
    provider: dcs_role.provider.array

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*11)

The Versions

31/12 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

The Development Requires

user array symfony role roleprovider