An open API service indexing awesome lists of open source software.

https://github.com/imatic/user-bundle

Bundle to work with users, roles
https://github.com/imatic/user-bundle

Last synced: 5 months ago
JSON representation

Bundle to work with users, roles

Awesome Lists containing this project

README

          

.. image:: https://secure.travis-ci.org/imatic/user-bundle.png?branch=master
:alt: Build Status
:target: http://travis-ci.org/imatic/user-bundle
|
.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
:alt: License: MIT
:target: LICENSE

================
ImaticUserBundle
================

*****
Roles
*****

Global roles
============

Configuration
-------------

.. sourcecode:: yaml

# app/config/security.yml

security:
# ...

role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

Translation
-----------

Global roles are translated using the "roles" domain.

Model roles
===========

Configuration
-------------

.. sourcecode:: yaml

# app/config/config.yml

# Imatic user
imatic_user:
# ...
security:
role:
model:
namespaces:
includes:
- App
excludes:
- AppExampleBundle\Entity\Example # exclude single entity
- AppFooBundle\Entity # exclude all entities

*************
Installation
*************

1. Generate AppUserBundle
=========================

Generate and enable a local bundle called AppUserBundle.

This bundle will contain user-related entities and fixtures.

2. Download ImaticUserBundle using composer
===========================================

.. sourcecode:: yaml

"require": {
# ...
"imatic/user-bundle": "^3.0"
}

3. Enable the bundle
====================

.. sourcecode:: php