Overview

Namespaces

  • ApiBundle
    • DataFixtures
      • Faker
        • Provider
    • DependencyInjection
    • Doctrine
      • DBAL
        • Type
      • ORM
        • Filter
          • User
    • Entity
    • EventListener
      • Doctrine
    • Manager
    • Utils
  • FrontBundle
    • Bundle
      • UserBundle
    • Client
      • Exception
    • Controller
    • DependencyInjection
    • Form
      • DataTransformer
      • Type
    • Menu
    • Security
      • Http
        • Authentication
    • Services
      • Http
    • Twig
    • Utils

Classes

  • IriHelper
  • RoleHierarchyHelper
  • Overview
  • Namespace
  • Class

Class RoleHierarchyHelper

Helper to manipulate Symfony's roles.

Namespace: FrontBundle\Utils
Author: Théo FIDRY theo.fidry@gmail.com
Located at FrontBundle/Utils/RoleHierarchyHelper.php
Methods summary
public static null|string
# getTopLevelRole( array $roles )

Extract the top level role from a list of roles.

Extract the top level role from a list of roles.

Parameters

$roles
List of roles.

Returns

null|string
Properties summary
public static array $roles

List of roles ordered in descending order of level access granted.

List of roles ordered in descending order of level access granted.

# [ 'ROLE_SUPER_ADMIN' => null, 'ROLE_ADMIN' => null, 'ROLE_USER' => null, ]
API documentation generated by ApiGen