1 | <?php |
||
9 | class RoleConstraintVoter implements PermissionVoterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var UserPermissionMatcherInterface |
||
13 | */ |
||
14 | private $userPermissionMatcher; |
||
15 | |||
16 | /** |
||
17 | * @param UserPermissionMatcherInterface $userPermissionMatcher |
||
18 | */ |
||
19 | public function __construct(UserPermissionMatcherInterface $userPermissionMatcher) |
||
23 | |||
24 | /** |
||
25 | * @param Permission $permission |
||
26 | * @param StringLiteral $offerId |
||
27 | * @param StringLiteral $userId |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function isAllowed( |
||
41 | } |
||
42 |