dcs / role-core-bundle
The DCSRoleCoreBundle provides the basic services for the role management
Installs: 39
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Open Issues: 3
Type:symfony-bundle
Requires
- php: >=5.3.9
Requires (Dev)
- dcs/security-core-bundle: ~1.0@dev
- phpunit/phpcov: 3.*
- phpunit/phpunit: ^5
- satooshi/php-coveralls: ~1.0
- symfony/framework-bundle: ~2.8|~3.0
- symfony/security: ~2.8|~3.0
Suggests
- dcs/role-provider-array-bundle: Management of the roles having the configuration as an array
- dcs/role-provider-orm-bundle: Management of the roles using Doctrine ORM
This package is not auto-updated.
Last update: 2024-11-21 03:30:06 UTC
README
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 Provider for the management of user roles using Doctrine ORM.
DCSRoleProviderArrayBundle Provider for the management of user roles using an array.
Installation
Prerequisites
This bundle requires DCSSecurityCoreBundle.
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 in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new DCS\Role\CoreBundle\DCSRoleCoreBundle(),
// ...
);
}
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.
Add the following configuration to your config.yml
.
dcs_role_core:
provider: YOUR_PROVIDER_SERVICE
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker.