1. Go to this page and download the library: Download wexample/symfony-user 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/ */
$repository->findByRoles($reversedRoleHierarchy->getParentRoles('ROLE_MANAGER')); // managers and above
$assignableRoles->canAssign($editor, ['ROLE_ADMIN']); // never above the editor
try {
$administration->changeRoles($this->getUser(), $account, ['ROLE_MANAGER']);
} catch (AccountAdministrationException $exception) {
$exception->refusal; // Enum\AccountAdministrationRefusal, and $exception->roles it is about
}
$scope->restrictToCurrentMember($queryBuilder, 'note.project', 'contributor');
$scope->assertInScope($note->getProject()); // 404 outside, never 403
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.