Download the PHP package libre-informatique/security-bundle without Composer
On this page you can find all versions of the php package libre-informatique/security-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download libre-informatique/security-bundle
More information about libre-informatique/security-bundle
Files in libre-informatique/security-bundle
Package security-bundle
Short Description Managing security rules and access controls
License GNU-GPL
Homepage https://github.com/libre-informatique/SymfonyLibrinfoSecurityBundle
Informations about the package security-bundle
This project has been abandoned and is no longer maintained. you should use https://github.com/libre-informatique/SonataSyliusUserBundle
SymfonyLibrinfoSecurityBundle
Managing security rules and access controls
The "libre-informatique" bundles
Configuration
General configuration
You should have this kind of configuration in :
Default configuration
Default security configuration is set in .
Defining custom role hierarchy and custom access control rules
You can define your own role hierarchy and your own access control rules by creating new configuration file .
It's very important to prefix all your roles with « ROLE_ ». It's because Symfony's RoleVoter use this prefix by default.
In this file you can define your custom access control logic under key. You can define your custom role hierarchy under key.
Notes :
- Your custom rules will be merged with default values defined in bundle and others ones.
- Do not forget to clear the cache in order to see your changes applied.
- Your custom hierarchy will be merged with bundle's defaults and other bundles using this configuration system.
Defining custom rules and roles within a bundle
You can define custom rules into any bundle in your src directory.
There are few step to achieve that :
- create your own into
- add your rules as described in [Defining custom role hierarchy and custom access control rules](#Defining custom role hierarchy and custom access control rules)
- add into this code :
All versions of security-bundle with dependencies
symfony/symfony Version 2.8.*
jms/security-extra-bundle Version dev-master