1 | <?php |
||
11 | class RoleChecker implements RoleCheckerInterface |
||
12 | { |
||
13 | /** @var AuthorizationCheckerInterface */ |
||
14 | private $authorizationChecker; |
||
15 | |||
16 | /** @var RoleHierarchyInterface */ |
||
17 | private $roleHierarchy; |
||
18 | |||
19 | /** |
||
20 | * Constructor |
||
21 | * |
||
22 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
23 | * @param RoleHierarchyInterface $roleHierarchy |
||
24 | */ |
||
25 | public function __construct(AuthorizationCheckerInterface $authorizationChecker, RoleHierarchyInterface $roleHierarchy) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function hasRole($role, UserInterface $user = null) |
||
52 | } |
||
53 |