Download the PHP package coosos/user-role-type-bundle without Composer
On this page you can find all versions of the php package coosos/user-role-type-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package user-role-type-bundle
Coosos/UserRoleTypeBundle
Requirements
Package | Version |
---|---|
PHP | ^7.1 |
Symfony | ^3.4, ^4.0, ~5.0 |
Installation
Step 1 : Download the bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle :
This command is used if composer is installed in your system.
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project :
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Coosos\UserRoleTypeBundle\CoososUserRoleTypeBundle(),
);
// ...
}
// ...
}
Usage
Form type
use Coosos\UserRoleTypeBundle\Form\Type;
...
$builder->add("roles", UserRoleType::class, ["coosos_security_checked" => "strict"]);
Form twig
example
{{ form_start(userForm) }}
{{ form_row(userForm.roles.ROLE_ADMIN) }}
{{ form_end(userForm) }}
Option
- coosos_security_checked (default="strict")
- strict = Prevents from being able to attribute a higher grade than his own
- coosos_input_type (default="Symfony\Component\Form\Extension\Core\Type\CheckboxType")
- Allows you to select another type of input (interesting for customize)
All versions of user-role-type-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
symfony/form Version ^3.4|^4.0|~5.0
symfony/security-bundle Version ^3.4|^4.0|~5.0
symfony/yaml Version ^3.4|^4.0|~5.0
symfony/config Version ^3.4|^4.0|~5.0
symfony/dependency-injection Version ^3.4.26|^4.1.12|~5.0
symfony/http-kernel Version ^3.4|^4.0|~5.0
symfony/options-resolver Version ^3.4|^4.0|~5.0
symfony/form Version ^3.4|^4.0|~5.0
symfony/security-bundle Version ^3.4|^4.0|~5.0
symfony/yaml Version ^3.4|^4.0|~5.0
symfony/config Version ^3.4|^4.0|~5.0
symfony/dependency-injection Version ^3.4.26|^4.1.12|~5.0
symfony/http-kernel Version ^3.4|^4.0|~5.0
symfony/options-resolver Version ^3.4|^4.0|~5.0
The package coosos/user-role-type-bundle contains the following files
Loading the files please wait ....