PHP code example of aldaflux / user-role-type-bundle
1. Go to this page and download the library: Download aldaflux/user-role-type-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aldaflux / user-role-type-bundle example snippets
use Aldaflux\AldafluxUserRoleTypeBundle\Form\Type\UserRoleType;
$builder->add("roles", UserRoleType::class); // use default configuration
$builder->add("roles", UserRoleType::class, ['config'=>"myconfigsuper"]); // use personnal configuration
$builder->add("roles", UserRoleType::class, ['config'=>"myconfigsuper", 'profile'=>"default"]); // use personnal configuration but overide the profiles