Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | class ConfigEditVoter extends Voter |
||
9 | { |
||
10 | const ACTION_NEW = 'edit'; |
||
11 | |||
12 | const ACTIONS = [self::ACTION_NEW]; |
||
13 | |||
14 | /** |
||
15 | * @inheritDoc |
||
16 | */ |
||
17 | protected function supports($attribute, $subject) |
||
18 | { |
||
19 | return in_array($attribute, self::ACTIONS) && $subject instanceof \oliverde8\ComfyBundle\Model\ConfigInterface; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @inheritDoc |
||
24 | */ |
||
25 | protected function voteOnAttribute($attribute, $subject, TokenInterface $token) |
||
28 | } |
||
29 | } |
||
30 |