| 1 | <?php |
||
| 15 | abstract class AbstractVoter implements VoterInterface |
||
| 16 | { |
||
| 17 | const SUPPORTED_ATTRIBUTES = ['VIEW', 'ACTION_POST_UPDATE', 'ACTION_POST_PERSIST']; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @{inheritDoc} |
||
| 21 | */ |
||
| 22 | public function supportsAttribute($attribute) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Check if one or more of the given items is not empty |
||
| 29 | * |
||
| 30 | * @param ...$value |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | protected static function notEmpty(...$value) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Check if the given attributes contain cms roles/attributes |
||
| 40 | * |
||
| 41 | * @param array $attributes |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | protected static function hasCmsAttribute(array $attributes = []) |
||
| 48 | } |