Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class EventVoter extends BaseVoter |
||
19 | { |
||
20 | /** |
||
21 | * @param string $attribute An attribute |
||
22 | * @param mixed $subject The subject to secure, e.g. an object the user wants to access or any other PHP type |
||
23 | * |
||
24 | * @return bool True if the attribute and subject are supported, false otherwise |
||
25 | */ |
||
26 | protected function supports($attribute, $subject) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Perform a single access check operation on a given attribute, subject and token. |
||
33 | * It is safe to assume that $attribute and $subject already passed the "supports()" method check. |
||
34 | * |
||
35 | * @param string $attribute |
||
36 | * @param Event $subject |
||
37 | * @param TokenInterface $token |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | protected function voteOnAttribute($attribute, $subject, TokenInterface $token) |
||
47 |