1 | <?php |
||
18 | abstract class BaseIpVoter implements VoterInterface |
||
19 | { |
||
20 | /** |
||
21 | * @return \Symfony\Component\HttpFoundation\Request |
||
22 | */ |
||
23 | abstract protected function getRequest(); |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | abstract protected function getEnvironment(); |
||
29 | |||
30 | /** |
||
31 | * @return \SpomkyLabs\IpFilterBundle\Model\IpManagerInterface |
||
32 | */ |
||
33 | abstract protected function getIpManager(); |
||
34 | |||
35 | /** |
||
36 | * @return \SpomkyLabs\IpFilterBundle\Model\RangeManagerInterface |
||
37 | */ |
||
38 | abstract protected function getRangeManager(); |
||
39 | |||
40 | public function supportsAttribute($attribute) |
||
44 | |||
45 | public function supportsClass($class) |
||
49 | |||
50 | public function vote(TokenInterface $token, $object, array $attributes) |
||
82 | } |
||
83 |