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
- Host: GitHub
- URL: https://github.com/imatic/user-bundle
- Owner: imatic
- License: mit
- Created: 2017-12-07T15:30:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-11-12T23:50:00.000Z (7 months ago)
- Last Synced: 2025-12-25T09:42:13.969Z (5 months ago)
- Language: PHP
- Size: 939 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Security: Security/EmailUserProvider.php
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