@@ 11-24 (lines=14) @@ | ||
8 | /** |
|
9 | * @author Julius Ehrlich <[email protected]> |
|
10 | */ |
|
11 | class FeatureVoter implements VoterInterface |
|
12 | { |
|
13 | /** |
|
14 | * {@inheritdoc} |
|
15 | */ |
|
16 | public function vote($parameter = null, $user = null, array $additional = []) |
|
17 | { |
|
18 | return Feature::decide( |
|
19 | $parameter, |
|
20 | $user, |
|
21 | isset($additional['defaultIfNotFound']) ? (bool) $additional['defaultIfNotFound'] : false |
|
22 | ); |
|
23 | } |
|
24 | } |
|
25 |
@@ 11-24 (lines=14) @@ | ||
8 | /** |
|
9 | * @author Julius Ehrlich <[email protected]> |
|
10 | */ |
|
11 | class ValueVoter implements VoterInterface |
|
12 | { |
|
13 | /** |
|
14 | * {@inheritdoc} |
|
15 | */ |
|
16 | public function vote($parameter = null, $user = null, array $additional = []) |
|
17 | { |
|
18 | return Value::decide( |
|
19 | $parameter, |
|
20 | $user, |
|
21 | isset($additional['defaultValue']) ? $additional['defaultValue'] : false |
|
22 | ); |
|
23 | } |
|
24 | } |
|
25 |